Issue #22800 has been updated by Felix Frank. Status changed from Unreviewed to Accepted Assignee set to Robert Birnie
Turns out this only happens with the new @var syntax in templates. The (now deprecated) <%= var %> still works as intended. ---------------------------------------- Bug #22800: dynamic variable lookup works in templates https://projects.puppetlabs.com/issues/22800#change-100272 * Author: Robert Birnie * Status: Accepted * Priority: Normal * Assignee: Robert Birnie * Category: templates * Target version: * Affected Puppet version: 3.2.2 * Keywords: templates scope * Branch: ---------------------------------------- Summary: >From within templates, dynamic lookup of variables seems to work. I can >declare a variable in the init.pp file. It shows up as undefined in the >configuration.pp file. But then it will work fine within the templates created >by configuration.pp. Steps to Reproduce: I've created a github repo with a simple module that shows off the issue. Basically its just creating a dynamic lookup variable in a template though, nothing special. https://github.com/rbirnie/puppet_scope_bug Expected Results: The variable should return undef which is what the manifests return. Actual Results: The variable returns the value that is assigned. Notes: Both agent and master are puppet 3.2.2 -- 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.
