fix syntax
This commit is contained in:
parent
4b4744e402
commit
2bd349f915
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue