Also catch :undefined_variable as thrown by future parser

This commit is contained in:
Tomas Doran 2015-06-05 12:40:46 +01:00
parent c69b75f88b
commit 212c498df3

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