]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
fix in merge.rb: refine the checking if an argument is an empty string
authorMartin Hellmich <mhellmic@gmail.com>
Wed, 8 May 2013 15:14:28 +0000 (17:14 +0200)
committerMartin Hellmich <mhellmic@gmail.com>
Wed, 8 May 2013 16:24:07 +0000 (18:24 +0200)
lib/puppet/parser/functions/merge.rb

index 54d1c1c2d93e2d30274903dca5dbf31475f889bb..1b39f20600fe07186fc91f7d0ac1d1de4c4b8801 100644 (file)
@@ -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