From e6b5a6dd0252f5491753abb3b71859644036f2fe Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Sun, 26 Jun 2011 14:33:53 +0200 Subject: Removed duplicate - is_hash is really now is_hash instead of is_array. --- lib/puppet/parser/functions/is_hash.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/parser') 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] -- cgit v1.2.3