fix in merge.rb: refine the checking if an argument is an empty string
This commit is contained in:
parent
3077d26b00
commit
f496005bf3
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ module Puppet::Parser::Functions
|
|||
accumulator = Hash.new
|
||||
# Merge into the accumulator hash
|
||||
args.each do |arg|
|
||||
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
|
||||
unless arg.is_a?(Hash)
|
||||
raise Puppet::ParseError, "merge: unexpected argument type #{arg.class}, only expects hash arguments"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue