Skip to content

Commit f496005

Browse files
committed
fix in merge.rb: refine the checking if an argument is an empty string
1 parent 3077d26 commit f496005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/merge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Puppet::Parser::Functions
2222
accumulator = Hash.new
2323
# Merge into the accumulator hash
2424
args.each do |arg|
25-
next if arg.empty? # empty string is synonym for puppet's undef
25+
next if arg.is_a? String and arg.empty? # empty string is synonym for puppet's undef
2626
unless arg.is_a?(Hash)
2727
raise Puppet::ParseError, "merge: unexpected argument type #{arg.class}, only expects hash arguments"
2828
end

0 commit comments

Comments
 (0)