Issue #3067 has been updated by Luke Kanies. Status changed from Unreviewed to Accepted
This is just slightly poorly worded - it refuses to allow the second assignment, because *if it did* said problem would occur. And variable assignments used to happen before resources, but that's no longer the case. ---------------------------------------- Bug #3067: is this description about variable assignment accurate? http://projects.reductivelabs.com/issues/3067 Author: Dan Bode Status: Accepted Priority: Normal Assigned to: Category: Target version: Keywords: Branch: Puppet will refuse to allow you to assign to the same variable twice in a given class or definition, because it will only ever use the second value and your first value will get thrown away, since all variable assignments are evaluated before any resource specifications. How can we say it would only use the second value if it just fails at compile? Is the statement true that all variable assignment are evaluated before resource specifications? what about the example where the order between variable assignment and an include matter? -- 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://reductivelabs.com/redmine/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.
