(MODULES-444) Change argument restriction to < 2
This commit is contained in:
parent
75a6186512
commit
594c2dd38d
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ Would result in:
|
||||||
EOS
|
EOS
|
||||||
) do |arguments|
|
) 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 " +
|
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]
|
a = arguments[0]
|
||||||
b = arguments[1]
|
b = arguments[1]
|
||||||
|
|
Loading…
Reference in a new issue