Skip to content

538-unresolved-fact-fix#540

Merged
GSPatton merged 2 commits intomainfrom
538-unresolved-fact-fix
Nov 28, 2022
Merged

538-unresolved-fact-fix#540
GSPatton merged 2 commits intomainfrom
538-unresolved-fact-fix

Conversation

@jordanbreen28
Copy link
Copy Markdown
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 force-pushed the 538-unresolved-fact-fix branch from d50c1a3 to 5ed1e9c Compare November 28, 2022 12:52
@jordanbreen28 jordanbreen28 changed the title (538)-unresolved-fact-fix (WIP) 538-unresolved-fact-fix Nov 28, 2022
@jordanbreen28 jordanbreen28 force-pushed the 538-unresolved-fact-fix branch from 5ed1e9c to 4dccd47 Compare November 28, 2022 12:59
@jordanbreen28 jordanbreen28 force-pushed the 538-unresolved-fact-fix branch from 4dccd47 to d4d43c1 Compare November 28, 2022 13:00
@jordanbreen28 jordanbreen28 marked this pull request as draft November 28, 2022 13:20
@jordanbreen28 jordanbreen28 force-pushed the 538-unresolved-fact-fix branch from c7210c7 to 40bbbe1 Compare November 28, 2022 14:26
@jordanbreen28 jordanbreen28 force-pushed the 538-unresolved-fact-fix branch from 40bbbe1 to aba7337 Compare November 28, 2022 14:29
@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