Issue #5859 has been updated by James Turnbull.

Target version deleted (2.6.6)


----------------------------------------
Bug #5859: --detailed-exit code returns 0 when resources fail
https://projects.puppetlabs.com/issues/5859

Author: Dan Bode
Status: Closed
Priority: High
Assignee: Jesse Wolfe
Category: 
Target version: 
Affected Puppet version: 2.6.4
Keywords: 
Branch: 


It seems like detailed-exit codes returns 1 for certain kinds of error, but 0 
for resource failures

It should return non-zero is any resource fails to synchronize:

<pre>
err: /Stage[main]/Virtualization/Exec[bring_up_br0]: Could not evaluate: Could 
not find executable '/usr/sbin/brctl'
</pre>

returns 0

<pre>
err: /Stage[main]/Virt::Storage/File[/etc/iscsi/iscsid.conf]: Could not 
evaluate: Could not retrieve information from source(s) puppet:
///modules/virt/etc/iscsi/iscsid.conf at 
/home/dan/svn/puppetrefactor/trunk/modules/dist/virt/manifests/storage.pp:24
</pre>

also returns 0

I also tested with the following:

<pre>
file { '/tmp/foop':
  source => '/tmp/fooper'
}
</pre>

<pre>
# puppet apply --detailed-exitcodes /tmp/foo.pp 
err: /Stage[main]//File[/tmp/foop]: Could not evaluate: Could not retrieve 
information from source(s) /tmp/fooper at /tmp/foo.pp:3
# echo $?
0
</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