On Saturday, May 25, 2013 9:53:37 AM UTC+2, Simon Marechal wrote: > > It also seems that "collect" isn't too useful compared to "each" : > * you can use collect everywhere you would use collect > * "each" seems to return the original collection unchanged >
Hum, that made no sense :) In my mind, there are two kinds of puppet functions : * functions at the statement level (realize, include, fail) * functions at the "value" level (fqdn_rand, file, etc.) : those functions either transform or produce data In the case of the "future" parser, it would be nice to either enforce this for each / collect (ie. use collect only in "value" context, and each in "statement" context), or to only have one function that does both. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
