Issue #5613 has been updated by Daniel Pittman. Assignee deleted (Daniel Pittman)
---------------------------------------- Feature #5613: Appending to Variables in a global context https://projects.puppetlabs.com/issues/5613#change-92405 * Author: Spenser Gilliland * Status: Needs More Information * Priority: Normal * Assignee: * Category: language * Target version: * Affected Puppet version: * Keywords: exported variables, globals, collections * Branch: ---------------------------------------- I'd like a syntax style for returning an array in a global context. IE: class redmine { instances = [] } define redmine::instance { instances += "name" } Or another possible syntax style. class redmine { instances = array_element <<| tag = "$fqdn" |>> } define redmine { array_element{"$name": tag => "$fqdn"} } These would ideally both create an array of the defined instances names. I describe the use case in this email thread in greater detail. https://groups.google.com/group/puppet-users/browse_thread/thread/9c4299eba91c9d15/9f80f5d4aa766321?hl=en#9f80f5d4aa766321 -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
