summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions
diff options
context:
space:
mode:
authorKen Barber <ken@bob.sh>2011-06-26 14:33:53 +0200
committerKen Barber <ken@bob.sh>2011-06-26 14:33:53 +0200
commite6b5a6dd0252f5491753abb3b71859644036f2fe (patch)
treea36d309ae869611f2205684b4aaf266c32230343 /lib/puppet/parser/functions
parent5c42025cab843b7d1d39b5ab839cfa268462a10d (diff)
downloadpuppet-stdlib-e6b5a6dd0252f5491753abb3b71859644036f2fe.tar.gz
puppet-stdlib-e6b5a6dd0252f5491753abb3b71859644036f2fe.tar.bz2
Removed duplicate - is_hash is really now is_hash instead of is_array.
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r--lib/puppet/parser/functions/is_hash.rb4
1 files changed, 2 insertions, 2 deletions
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]