summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/date.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/date.rb')
-rw-r--r--lib/puppet/parser/functions/date.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/date.rb b/lib/puppet/parser/functions/date.rb
index ea11265..4d0543e 100644
--- a/lib/puppet/parser/functions/date.rb
+++ b/lib/puppet/parser/functions/date.rb
@@ -6,6 +6,12 @@ module Puppet::Parser::Functions
newfunction(:date, :type => :rvalue, :doc => <<-EOS
EOS
) do |arguments|
+
+ if (arguments.size != 1) then
+ raise(Puppet::ParseError, "is_valid_netmask(): Wrong number of arguments "+
+ "given #{arguments.size} for 1")
+ end
+
end
end