Skip to content

Commit

Permalink
(MODULES-444) Change argument restriction to < 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Souter committed Dec 4, 2014
1 parent 75a6186 commit 594c2dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/parser/functions/concat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ module Puppet::Parser::Functions
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]
Expand Down

0 comments on commit 594c2dd

Please sign in to comment.