Issue #20014 has been reported by Andrew Forgue.

----------------------------------------
Bug #20014: Resource default of 'tag' doesn't propagate
https://projects.puppetlabs.com/issues/20014

* Author: Andrew Forgue
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 3.1.1
* Keywords: 
* Branch: 
----------------------------------------
consider this manifest:

<pre><code class="puppet">Notify {
  tag => 'tag1',
}

notify { 'test':
  message => 'Testing, did not get overridden'
}

Notify<| tag == 'tag1' |> {
  message => 'overridden by collection'
}</code></pre>

It produces this output:

<pre>
Notice: Testing, did not get overridden
Notice: /Stage[main]//Notify[test]/message: defined 'message' as 'Testing, did 
not get overridden'
Notice: Finished catalog run in 0.08 seconds
</pre>

If I apply the tag directly to the notify resource, it works properly.  This 
doesn't seem to be limited to overriding collections based on tag, since this 
doesn't work either:

<pre><code class='puppet'>
Notify {
  tag => 'tag1',
}

notify { 'test':
  message => 'Testing, did not get overridden'
}

notify { 'test2':
  message => 'Second test'
}

Notify<| tag == 'tag1' |>  -> Notify['test2']
</code></pre>

produces:

<pre>
Notice: Second test
Notice: /Stage[main]//Notify[test2]/message: defined 'message' as 'Second test'
Notice: Testing, did not get overridden
Notice: /Stage[main]//Notify[test]/message: defined 'message' as 'Testing, did 
not get overridden'
Notice: Finished catalog run in 0.09 seconds
</pre>

Again, specifying the tag on the notify resource itself makes Notify[test2] 
come after Notify[test], as expected.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to