On Wed, Aug 15, 2012 at 2:51 PM, Douglas Garstang
<doug.garst...@gmail.com> wrote:
> How do I get get length of an array in puppet DSL?

Hi Doug,

You can install the puppetlabs-stdlib module from the Forge and use
the size function.

Forge page: http://forge.puppetlabs.com/puppetlabs/stdlib
The raw function code:
https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/size.rb

HTH,

--Ryan

>
> Doug
>
> --
> 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.
>

-- 
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