summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Souter <p.souter@kainos.com>2014-12-04 14:33:23 +0000
committerPeter Souter <p.souter@kainos.com>2014-12-04 14:33:23 +0000
commit594c2dd38dc35a4f458ce511be9b7dd875915b44 (patch)
tree3c1501ef2857f2466d71cec2d7bce954f38380c1 /lib
parent75a6186512b0d4d02593453fcc9ffe5e1b253107 (diff)
downloadpuppet-stdlib-594c2dd38dc35a4f458ce511be9b7dd875915b44.tar.gz
puppet-stdlib-594c2dd38dc35a4f458ce511be9b7dd875915b44.tar.bz2
(MODULES-444) Change argument restriction to < 2
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/concat.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/concat.rb b/lib/puppet/parser/functions/concat.rb
index 4b53f59..8400f7b 100644
--- a/lib/puppet/parser/functions/concat.rb
+++ b/lib/puppet/parser/functions/concat.rb
@@ -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]