Skip to content

Commit 2267f1c

Browse files
author
Morgan Haskel
committed
Need to convert strings and fixnums to arrays
1 parent fb42396 commit 2267f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/member.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module Puppet::Parser::Functions
3939
raise(Puppet::ParseError, 'member(): Requires array to work with')
4040
end
4141

42-
if arguments[1].is_a? String
42+
if arguments[1].is_a? String or arguments[1].is_a? Fixnum
4343
item = Array(arguments[1])
4444
else
4545
item = arguments[1]

0 commit comments

Comments
 (0)