On 10 February 2011 16:04, Nan Liu <n...@puppetlabs.com> wrote:

>
> Not sure if there's a better way. Convert all Hash key to string, so
> it doesn't choke on the array sort:
>
> $foo = inline_template("<% scope.to_hash.keys.collect{|x|
> x.to_s}.sort.each do |k| %><%= k %><% end %>")
> notice($foo)
>
> Thanks Nan - it works perfectly - even if it looks like a bit of voodoo :-)
But then, so did perl when I first started using it...

John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to