]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Removed duplicate - is_hash is really now is_hash instead of is_array.
authorKen Barber <ken@bob.sh>
Sun, 26 Jun 2011 12:33:53 +0000 (14:33 +0200)
committerKen Barber <ken@bob.sh>
Sun, 26 Jun 2011 12:33:53 +0000 (14:33 +0200)
lib/puppet/parser/functions/is_hash.rb

index 259809c19970695666884ff10ed836a4d0ed2e86..000306e92dc5a279ce244c7f4a73a1397ee237b0 100644 (file)
@@ -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]