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

538-unresolved-fact-fix #540

Merged
merged 2 commits into from
Nov 28, 2022
Merged

538-unresolved-fact-fix #540

merged 2 commits into from
Nov 28, 2022

Conversation

jordanbreen28
Copy link
Contributor

Fix for issue #538

Prior to this PR, work was carried out to update the use of Facter in this module, as the methods present had been deprecated.
This change a bug, as the Facter::Util::Resolution (deprecated) and Facter::Core::Execution (supported) do not behave the same.

Previously, the deprecated Facter::Util::Resolution.exec statements initially ran a which, that checked that the binary was present before running an exec statement on that binary. The newer instances of Facter's execute statements, attempted to execute even when the binary is not present, which causes an error.

This PR hopes to rectify this issue, by first running a command which checks if the binary is present before executing.

@jordanbreen28 jordanbreen28 requested a review from a team as a code owner November 28, 2022 12:45
@jordanbreen28 jordanbreen28 changed the title (538)-unresolved-fact-fix (WIP) 538-unresolved-fact-fix Nov 28, 2022
@jordanbreen28 jordanbreen28 reopened this Nov 28, 2022
@jordanbreen28 jordanbreen28 marked this pull request as ready for review November 28, 2022 14:39
@GSPatton GSPatton merged commit 2d07af4 into main Nov 28, 2022
@GSPatton GSPatton deleted the 538-unresolved-fact-fix branch November 28, 2022 15:27
@GSPatton GSPatton changed the title (WIP) 538-unresolved-fact-fix 538-unresolved-fact-fix Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants