Issue #23207 has been updated by Ryan Coleman. Project changed from Puppet Forge to Puppet Assignee set to eric sorenson
Eric, looks like this fell into Forge by accident. ---------------------------------------- Bug #23207: puppet agent always returns detailed exit codes https://projects.puppetlabs.com/issues/23207#change-100019 * Author: Steven Willis * Status: Unreviewed * Priority: Normal * Assignee: eric sorenson * Category: * Target version: * Affected Puppet version: * Keywords: agent,cli,detailed,exitcodes customer * Branch: ---------------------------------------- Puppet agent seems to ignore whether --detailed-exitcodes is specified or not and always returns 2 if there were changes. It doesn't seem to be the case with puppet apply which does seem to respect the absence of --detailed-exitcodes. The manifest being applies always has changes, there's no way to get puppet to just return 0 on a successful agent run if there were changes. It's like --detailed-exitcodes is always specified. $ sudo /opt/puppet/bin/puppet agent --test > /dev/null; echo $? 2 $ sudo /opt/puppet/bin/puppet agent --test --detailed-exitcodes > /dev/null; echo $? 2 $ sudo /opt/puppet/bin/puppet agent --test --detailed-exitcodes no > /dev/null; echo $? 2 $ sudo /opt/puppet/bin/puppet agent --test --detailed-exitcodes off > /dev/null; echo $? 2 $ sudo /opt/puppet/bin/puppet agent --test --detailed-exitcodes 0 > /dev/null; echo $? 2 $ sudo /opt/puppet/bin/puppet agent --test --no-detailed-exitcodes > /dev/null; echo $? Error: Could not parse application options: invalid option: --no-detailed-exitcodes 1 -- 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. For more options, visit https://groups.google.com/groups/opt_out.
