Issue #5670 has been updated by Nick Lewis.

Also, the other ticket is #4071.
----------------------------------------
Bug #5670: Failing resources should not notify
https://projects.puppetlabs.com/issues/5670

Author: R.I. Pienaar
Status: Available In Testing Branch
Priority: High
Assignee: 
Category: 
Target version: 2.6.x
Affected Puppet version: 2.6.4
Keywords: 
Branch: 


Given the code:

<pre>
exec{"/bin/false": notify => Exec["meh"]}

exec{"meh":
    command => "/usr/bin/cowsay 'fail :('",
    require => Exec["/bin/false"],
    logoutput => true
}
</pre>

I expect the Exec["meh"] never to happen because the Exec["/bin/false"] will 
always fail, in 0.25.x this was the case:

<pre>
err: //Exec[/bin/false]/returns: change from notrun to 0 failed: /bin/false 
returned 1 instead of one of [0] at /home/rip/test.pp:1
notice: //Exec[meh]: Dependency exec[/bin/false] has 1 failures
warning: //Exec[meh]: Skipping because of failed dependencies
</pre>

In 2.6 though the following happens:

<pre>
err: /Stage[main]//Exec[/bin/false]/returns: change from notrun to 0 failed: 
/bin/false returned 1 instead of one of [0] at /home/rip/test.pp:1
notice: /Stage[main]//Exec[meh]: Dependency Exec[/bin/false] has failures: true
warning: /Stage[main]//Exec[meh]: Skipping because of failed dependencies
notice: /Stage[main]//Exec[meh]/returns:  _________ 
notice: /Stage[main]//Exec[meh]/returns: < fail :( >
notice: /Stage[main]//Exec[meh]/returns:  --------- 
notice: /Stage[main]//Exec[meh]/returns:         \   ^__^
notice: /Stage[main]//Exec[meh]/returns:          \  (oo)\_______
notice: /Stage[main]//Exec[meh]/returns:             (__)\       )\/\
notice: /Stage[main]//Exec[meh]/returns:                 ||----w |
notice: /Stage[main]//Exec[meh]/returns:                 ||     ||
notice: /Stage[main]//Exec[meh]: Triggered 'refresh' from 1 events
</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.

Reply via email to