On Wed, Apr 20, 2011 at 12:17 AM, Felix Frank
<felix.fr...@alumni.tu-berlin.de> wrote:
>> module Puppet::Parser::Functions
>>   newfunction(:hash_keys, :type => :rvalue) do |args|
>>     unless args[0].is_a?(Hash)
>>       Puppet.warning "hash_keys takes one argument, the input hash"
>>       nil
>>     else
>>       args[0].keys
>>     end
>>   end
>> end
>>
>>
>> save to lib/puppet/parser/functions/ in a module.
>
> I think this should be mainline *hint, hint* ;-)

I might take this as the first step towards collecting a bunch of
these in a module, and if there's enough interest in it during the
life of 2.7.x, we'll merge some of them into Telly, the next feature
release.

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