Issue #3845 has been updated by Nigel Kersten. Status changed from Accepted to Needs more information Assignee set to Nigel Kersten
Ryan, just so we can be sure that class level tags from the tag function are addressed by the fix in #4631 for implicit tags, have you had a chance to test the fix from that ticket? ---------------------------------------- Bug #3845: Resources do not inherit class-level tags https://projects.puppetlabs.com/issues/3845 Author: Jonathan Booth Status: Needs more information Priority: Normal Assignee: Nigel Kersten Category: tags Target version: Affected Puppet version: 0.25.4 Keywords: Branch: Resources (and virtual resources) are not having their classes declared tags correctly applied. ("Add the specified tags to the containing class or definition. All contained objects will then acquire that tag, also." ref: http://docs.puppetlabs.com/references/latest/function.html#tag) <pre> class foo { tag 'notworking' notify { "I'm untagged": } notify { "I'm tagged": tag => "notworking" } } include foo Notify <| tag == "notworking" |> { message => "I am though" } </pre> Results in: <pre> mauve /home/jbooth > puppet tagmagic.pp notice: I am though notice: //foo/Notify[I'm tagged]/message: defined 'message' as 'I am though' notice: I'm untagged notice: //foo/Notify[I'm untagged]/message: defined 'message' as 'I'm untagged' </pre> You can change the 'tag == "foo"' and life doesn't get any better. The neither notify gets the message changed. <pre> mauve /home/jbooth > tail -1 tagmagic.pp Notify <| tag == "foo" |> { message => "I am though" } mauve /home/jbooth > puppet tagmagic.pp notice: I'm untagged notice: //foo/Notify[I'm untagged]/message: defined 'message' as 'I'm untagged' notice: I'm tagged notice: //foo/Notify[I'm tagged]/message: defined 'message' as 'I'm tagged' </pre> -- 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.
