Issue #11910 has been updated by Dominic Cleal. Keywords set to stages classes ordering
---------------------------------------- Bug #11910: class with stage resources needs to be declared & parsed before a declared class can use one of those stages https://projects.puppetlabs.com/issues/11910 Author: Ryan Coleman Status: Accepted Priority: Low Assignee: Category: parser Target version: Affected Puppet version: 2.7.9 Keywords: stages classes ordering Branch: Assuming the following Puppet code: <pre> # stages/manifests/init.pp class stages { stage { 'first': before => Stage['main'] } } # notify/manifests/init.pp class notify { notify { "Hello from $module_name!": } } # notify/tests/init.pp class { 'notify': stage => 'first', } class { 'stages': } </pre> The above, when applied as `puppet apply notify/tests/init.pp` results in: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find stage first specified by Class[Notify] If I move the stages class declaration to above my notify class, it works. Shouldn't parsing order be irrelevant here? If it isn't, I'm not saying it's horrible, just unexpected and counter to how the DSL is taught in our master training course. -- 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.
