Merge pull request #470 from Yelp/getvar_future_parser

Also catch :undefined_variable as thrown by future parser
This commit is contained in:
David Schmitt 2015-06-11 18:23:29 +01:00
commit 8267dbc149

View file

@ -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