From: Ken Barber Date: Sun, 26 Jun 2011 12:33:53 +0000 (+0200) Subject: Removed duplicate - is_hash is really now is_hash instead of is_array. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e6b5a6dd0252f5491753abb3b71859644036f2fe;p=puppet-stdlib.git Removed duplicate - is_hash is really now is_hash instead of is_array. --- diff --git a/lib/puppet/parser/functions/is_hash.rb b/lib/puppet/parser/functions/is_hash.rb index 259809c..000306e 100644 --- a/lib/puppet/parser/functions/is_hash.rb +++ b/lib/puppet/parser/functions/is_hash.rb @@ -3,12 +3,12 @@ # module Puppet::Parser::Functions - newfunction(:is_array, :type => :rvalue, :doc => <<-EOS + newfunction(:is_hash, :type => :rvalue, :doc => <<-EOS EOS ) do |arguments| raise(Puppet::ParseError, "is_hash(): Wrong number of arguments " + - "given (#{arguments.size} for 1)") if arguments.size < 1 + "given (#{arguments.size} for 1)") if arguments.size != 1 type = arguments[0]