Issue #21236 has been updated by eric sorenson. Status changed from Needs Decision to Accepted Assignee changed from eric sorenson to Andrew Parker Target version set to 3.x Keywords changed from noop customer to noop customer backlog
Agree that this is a feature request. We need to do a little design from first principles with regard to no-op mode, but I agree that this should be part of the feature set. Charlie, I agree it's hard to tell 'changed+success' from 'changed+failed' events in no-op mode, but I think from a design standpoint we would only commit to returning '2' or '0' in no-op. Those semantics would at least permit people could distinguish between 'totally in compliance' vs 'something is amiss but you need to investigate further' based on the exit code, which is currently not working. Adding to the 3.x backlog and assigning to Andy for engineering level-of-effort estimation. ---------------------------------------- Feature #21236: --detailed-exit-codes not honored when --noop is used https://projects.puppetlabs.com/issues/21236#change-93447 * Author: Lee Lowder * Status: Accepted * Priority: Normal * Assignee: Andrew Parker * Category: error reporting * Target version: 3.x * Affected Puppet version: * Keywords: noop customer backlog * Branch: ---------------------------------------- According to the man page, >--detailed-exitcodes > Provide transaction information via exit codes. If this is enabled, an exit > code of '2' means there were changes, an exit code of '4' means there were > failures during the transaction, and an exit code of '6' means there were > > both changes and failures. If --noop is used, puppet always returns with an exit code of 0. While technically correct, as nothing changed, it is not the expected result nor is it terribly useful. Puppet should return 0 if nothing would have changed, 2 if something would have changed, 4 if errors and 6 if potential changes and errors when ran with --noop. -- 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.
