On Thu, Jan 12, 2012 at 1:18 PM, Peter Berghold <salty.cowdawg@gmail.com>
wrote:> given a structure like this:
>
> $accounts={ usera=>{},userb=>{what''s in here''s not
the point},userc=>{} };
>
> $account_keys=$accounts.keys
>
>
> ... been reading up on Ruby..... :-)
You need puppet-stdlib: https://github.com/puppetlabs/puppetlabs-stdlib/
$account_keys = keys($accounts)
Thanks,
Nan
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.