Issue #22528 has been updated by Nick Fagerlund.
I'm not sure! "Since" would be useful, but it would be insufficient by itself. (Because we have functions that work with your current version, but only if you turn on experimental features.) A simple "requires `future`" switch wouldn't work either, because we already have two sets of functions that require different feature sets. (The second only includes "lookup," as far as I know.) We could do like providers and make "features" for functions, but that sounds like too much indirection. I'd prefer to tie it to the specific `setting = value` pairs that the function requires. This also brings up the specter of maintainability -- we need something that does the right thing when/if the future parser becomes the current parser. ---------------------------------------- Bug #22528: Functions that require the future parser should be concretely identifiable https://projects.puppetlabs.com/issues/22528#change-97701 * Author: Nick Fagerlund * Status: Accepted * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: * Keywords: * Branch: ---------------------------------------- Take a look at the function reference: http://docs.puppetlabs.com/references/3.latest/function.html There are a bunch of functions in there that will just plain explode on a stock Puppet 3.x install. (each, collect, etc.) This is because there's no indication in these functions' code that they require the future parser. We need an indication of this built into the function API, not only for the sake of documentation but also to improve error handling, etc. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs. For more options, visit https://groups.google.com/groups/opt_out.
