diff options
author | mh <mh@immerda.ch> | 2010-10-21 01:05:22 +0200 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2010-11-07 13:37:27 -0500 |
commit | 218c68752e3096b79cc9dc2a8749b9776715ade8 (patch) | |
tree | 273a5a4ea36faa4daa8017080acfd7a929708257 | |
parent | 82eed89bccfe1af07caf925ce91e43b878bfda41 (diff) | |
download | puppet-common-218c68752e3096b79cc9dc2a8749b9776715ade8.tar.gz puppet-common-218c68752e3096b79cc9dc2a8749b9776715ade8.tar.bz2 |
go on uniq strings
Looks like puppet has some internal representation which
is not comparable.
-rw-r--r-- | lib/puppet/parser/functions/uniq_flatten.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/uniq_flatten.rb b/lib/puppet/parser/functions/uniq_flatten.rb index a4cae40..4841c4d 100644 --- a/lib/puppet/parser/functions/uniq_flatten.rb +++ b/lib/puppet/parser/functions/uniq_flatten.rb @@ -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 |