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.