(MODULES-444) Change argument restriction to < 2

This commit is contained in:
Peter Souter 2014-12-04 14:33:23 +00:00
parent 75a6186512
commit 594c2dd38d

View file

@ -16,9 +16,9 @@ Would result in:
EOS
) do |arguments|
# Check that 2 arguments have been given ...
# Check that more than 2 arguments have been given ...
raise(Puppet::ParseError, "concat(): Wrong number of arguments " +
"given (#{arguments.size} for 2)") if arguments.size != 2
"given (#{arguments.size} for < 2)") if arguments.size < 2
a = arguments[0]
b = arguments[1]