We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0191a3f + 212c498 commit 8267dbcCopy full SHA for 8267dbc
1 file changed
lib/puppet/parser/functions/getvar.rb
@@ -20,7 +20,9 @@ module Puppet::Parser::Functions
20
end
21
22
begin
23
- self.lookupvar("#{args[0]}")
+ catch(:undefined_variable) do
24
+ self.lookupvar("#{args[0]}")
25
+ end
26
rescue Puppet::ParseError # Eat the exception if strict_variables = true is set
27
28
0 commit comments