Issue #6255 has been updated by Ben Hughes.
Status changed from Unreviewed to Investigating
Assignee set to Ben Hughes
The codebase as it stands exits with a return code of 3 if there are any
failures, and 0 only if there are no errors.
A snippet from lib/puppet/application/kick.rb:
<pre>
if failures.empty?
puts "Finished"
exit(0)
else
puts "Failed: #{failures.join(", ")}"
exit(3)
end
</pre>
Your example showed a successful run, which returned 0. Am I missing something?
----------------------------------------
Bug #6255: Puppet kick exists with 0 even when puppet run has failures
https://projects.puppetlabs.com/issues/6255
Author: Jeffrey Lensen
Status: Investigating
Priority: Normal
Assignee: Ben Hughes
Category:
Target version:
Affected Puppet version: 2.6.1
Keywords:
Branch:
When I run a puppet kick from a remote server and the puppet run on the other
host encounters failures during a run, it still exits with 0 and says
everything was successful.
$ puppet kick --foreground host ; echo $?
Triggering host
Getting status
status is success
host finished with exit code 0
Finished
0
Wouldn't it make more sense to exit with something other than 0 so you can
easily determine if the puppet run was actually successful or not?
--
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.