go on uniq strings
Looks like puppet has some internal representation which is not comparable.
This commit is contained in:
parent
82eed89bcc
commit
218c68752e
1 changed files with 1 additions and 1 deletions
|
@ -6,5 +6,5 @@ Puppet::Parser::Functions::newfunction(
|
|||
Example: uniq_flatten([['a','b'],'a']) -> ['a','b']"
|
||||
) do |args|
|
||||
raise Puppet::ParseError, 'uniq_flatten() needs one arguments' if args.length != 1
|
||||
args[0].to_a.flatten.uniq
|
||||
args[0].to_a.flatten.collect(&:to_s).uniq
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue