Changeset ad28f83 for src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb
- Timestamp:
- Aug 1, 2017, 3:45:14 PM (9 years ago)
- Branches:
- debian/bullseye, debian/jessie
- Children:
- ce0f6a4
- Parents:
- bcf0be5 (diff), cd0f9cc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb
rbcf0be5 rad28f83 21 21 22 22 begin 23 result = nil 23 24 catch(:undefined_variable) do 24 self.lookupvar("#{args[0]}")25 result = self.lookupvar("#{args[0]}") 25 26 end 27 28 # avoid relying on incosistent behaviour around ruby return values from catch 29 result 26 30 rescue Puppet::ParseError # Eat the exception if strict_variables = true is set 27 31 end
Note:
See TracChangeset
for help on using the changeset viewer.
