Skip to content

Commit 594c2dd

Browse files
author
Peter Souter
committed
(MODULES-444) Change argument restriction to < 2
1 parent 75a6186 commit 594c2dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/puppet/parser/functions/concat.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module Puppet::Parser::Functions
1616
EOS
1717
) do |arguments|
1818

19-
# Check that 2 arguments have been given ...
19+
# Check that more than 2 arguments have been given ...
2020
raise(Puppet::ParseError, "concat(): Wrong number of arguments " +
21-
"given (#{arguments.size} for 2)") if arguments.size != 2
21+
"given (#{arguments.size} for < 2)") if arguments.size < 2
2222

2323
a = arguments[0]
2424
b = arguments[1]

0 commit comments

Comments
 (0)