Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/puppet/parser/functions/getvar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down