summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/flatten.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/flatten.rb')
-rw-r--r--lib/puppet/parser/functions/flatten.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/flatten.rb b/lib/puppet/parser/functions/flatten.rb
index 781da78..a1ed183 100644
--- a/lib/puppet/parser/functions/flatten.rb
+++ b/lib/puppet/parser/functions/flatten.rb
@@ -16,7 +16,7 @@ Would return: ['a','b','c']
) do |arguments|
raise(Puppet::ParseError, "flatten(): Wrong number of arguments " +
- "given (#{arguments.size} for 1)") if arguments.size < 1
+ "given (#{arguments.size} for 1)") if arguments.size != 1
array = arguments[0]