Skip to content

Conversation

@AriaXLi
Copy link
Contributor

@AriaXLi AriaXLi commented Apr 27, 2023

Facter will raise an error saying no-external-facts and external-dir options conflict: please specify only one if the -p/--puppet and --no-external-facts options are used together. The -p option adds another directory to external-dir which causes Facter to think the --external-dir option was also passed in. This commit ensures -p and --no-external-facts can be used together without raising and --external-dir is either set to false or any explicitely passed in external directories and adds a spec test to test this behavior.

@AriaXLi AriaXLi requested a review from a team as a code owner April 27, 2023 20:17
@AriaXLi AriaXLi force-pushed the FACT-3192/--puppet_--no-external-facts branch 4 times, most recently from 47642dd to 5878498 Compare April 27, 2023 21:49
@AriaXLi AriaXLi added the blocked PRs blocked on work external to the PR itself label May 2, 2023
@AriaXLi AriaXLi force-pushed the FACT-3192/--puppet_--no-external-facts branch 4 times, most recently from f3d7d98 to 9e85402 Compare May 3, 2023 19:04
Facter will raise an error saying `no-external-facts and external-dir options
conflict: please specify only one` if the -p/--puppet and --no-external-facts
options are used together. The -p option adds another directory to external-dir
which causes Facter to think the --external-dir option was also passed in. This
commit ensures -p and --no-external-facts can be used together without raising
and --external-dir is either set to false or any explicitely passed in
external directories. Spec tests are also added to ensure Facter behaves as
expected.
@AriaXLi AriaXLi force-pushed the FACT-3192/--puppet_--no-external-facts branch from 9e85402 to aeaf26b Compare May 3, 2023 19:07
@AriaXLi AriaXLi removed the blocked PRs blocked on work external to the PR itself label May 3, 2023
Copy link
Contributor

@joshcooper joshcooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified facter --no-external-facts and facter -p --no-external-facts works as expected

@joshcooper joshcooper merged commit 2a228e7 into puppetlabs:main May 4, 2023
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.

2 participants