We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3077d26 commit f496005Copy full SHA for f496005
lib/puppet/parser/functions/merge.rb
@@ -22,7 +22,7 @@ module Puppet::Parser::Functions
22
accumulator = Hash.new
23
# Merge into the accumulator hash
24
args.each do |arg|
25
- next if arg.empty? # empty string is synonym for puppet's undef
+ next if arg.is_a? String and arg.empty? # empty string is synonym for puppet's undef
26
unless arg.is_a?(Hash)
27
raise Puppet::ParseError, "merge: unexpected argument type #{arg.class}, only expects hash arguments"
28
end
0 commit comments