Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(FACT-1115) Fix execution of non-zero command exit treated as failure. #1037

Merged
merged 1 commit into from Jul 13, 2015

Conversation

peterhuene
Copy link

Facter 2.x returns output from Facter::Core::Execution::exec/execute
even if the command failed (non-zero exit code). It returned the value
of the on_fail option only if the command couldn't be found.

Facter 3 was returning the on_fail option if the command returned a
non-zero exit code or couldn't be found. This commit restores the 2.x
behavior.

@puppetcla
Copy link

CLA signed by all contributors.

@peterhuene peterhuene force-pushed the fact/1115 branch 2 times, most recently from f7967f4 to a59f67f Compare July 11, 2015 07:16
Facter 2.x returns output from `Facter::Core::Execution::exec/execute`
even if the command failed (non-zero exit code).  It returned the value
of the `on_fail` option only if the command couldn't be found.

Facter 3 was returning the `on_fail` option if the command returned a
non-zero exit code or couldn't be found.  This commit restores the 2.x
behavior.
MikaelSmith pushed a commit that referenced this pull request Jul 13, 2015
(FACT-1115) Fix execution of non-zero command exit treated as failure.
@MikaelSmith MikaelSmith merged commit ef58d94 into puppetlabs:stable Jul 13, 2015
@peterhuene peterhuene deleted the fact/1115 branch August 11, 2015 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants