Changeset be0859f for src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb
- Timestamp:
- Jul 31, 2017, 6:42:27 PM (9 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- fc9d514
- Parents:
- eb1ccd6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/puppetcode/environments/gnuboat/modules/stdlib/lib/puppet/parser/functions/getvar.rb
reb1ccd6 rbe0859f 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.
