Issue #3720 has been updated by James Turnbull. Status changed from Unreviewed to Rejected
This is currently correct behaviour I believe. You can't refine a variable or append to an array in the same scope. See the variable scoping discussion at http://docs.reductivelabs.com/guides/more_language.html#variable_scope. ---------------------------------------- Bug #3720: cannot append to arrays in a given scope http://projects.puppetlabs.com/issues/3720 Author: seph seph Status: Rejected Priority: Normal Assigned to: Category: Target version: Affected version: 0.25.4 Keywords: Branch: $ cat /tmp/test.pp $array = ["a"] $array += ["b"] exec{[$array]: command => "/bin/echo hi $name", } $ puppet /tmp/test.pp Cannot append, variable array is defined in this scope at /tmp/test.pp:2 on node test $ puppet --version 0.25.4 -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
