Merge pull request #470 from Yelp/getvar_future_parser
Also catch :undefined_variable as thrown by future parser
This commit is contained in:
commit
8267dbc149
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ module Puppet::Parser::Functions
|
|||
end
|
||||
|
||||
begin
|
||||
self.lookupvar("#{args[0]}")
|
||||
catch(:undefined_variable) do
|
||||
self.lookupvar("#{args[0]}")
|
||||
end
|
||||
rescue Puppet::ParseError # Eat the exception if strict_variables = true is set
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue