aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoro <o@immerda.ch>2014-04-16 14:27:21 +0200
committero <o@immerda.ch>2014-04-16 14:27:21 +0200
commit2bd349f9159a2b8d18805658033cfe91f1d5375d (patch)
tree933f9fdb30bf98228ffa1edeffcac34cc55dc60d
parent4b4744e402f5cbc5f9856971d1a64002c7eb0796 (diff)
downloadpuppet-common-2bd349f9159a2b8d18805658033cfe91f1d5375d.tar.gz
puppet-common-2bd349f9159a2b8d18805658033cfe91f1d5375d.tar.bz2
fix syntax
-rw-r--r--lib/puppet/parser/functions/array_join.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/array_join.rb b/lib/puppet/parser/functions/array_join.rb
index c715c5d..c5fa1c8 100644
--- a/lib/puppet/parser/functions/array_join.rb
+++ b/lib/puppet/parser/functions/array_join.rb
@@ -1,7 +1,7 @@
Puppet::Parser::Functions::newfunction(:array_join,
:type => :rvalue,
:doc => "Join a list of strings with an optional delimiter.") do |args|
- unless 1..2.include? args.length
+ unless (1..2).include?(args.length)
raise Puppet::ParseError, 'array_join() takes 1 or 2 arguments'
end
args.first.join args.last