Issue #14662 has been updated by Chris Spence.

More dubious return codes - I can see why this might want to return non-zero 
but surely it's a successful outcome - I'd have thought that NOT applying the 
catalog, or the catalog not compiling or some other actual error might result 
in non-zero but surely not this?

[root@winbindclient ~]# puppet agent -t && reboot
info: Retrieving plugin
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/winbind.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
info: Caching catalog for winbindclient.spence.org.uk.local
info: Applying configuration version '1339162028'
notice: /Stage[main]/Winbind/Service[winbind]/enable: enable changed 'false' to 
'true'
notice: Finished catalog run in 4.72 seconds
[root@winbindclient ~]# echo $?
2

2?
----------------------------------------
Bug #14662: Puppet cert list returns 0 on error
https://projects.puppetlabs.com/issues/14662#change-64619

Author: Chris Spence
Status: Needs More Information
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


puppet cert should probably return a sensible error code (i.e. non-zero) when 
reporting an error

[root@training ~]# puppet cert list tard
err: Could not call list: Could not find a certificate for tard
[root@training ~]# echo $?
0




-- 
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