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

(PUP-4847) Reset Facter after changing $LOAD_PATH #4079

Merged
merged 3 commits into from
Jul 10, 2015

Conversation

MikaelSmith
Copy link
Contributor

No description provided.

Michael Smith added 2 commits July 10, 2015 09:31
Facters behavior in 2.x was to query the $LOAD_PATH when requesting
Facts it doesn't know about, but only if querying individual facts or
querying all facts when they haven't been cached yet. This can lead to
very strange behavior, where different ways of querying facts yield
different results.

Facter 3.0 made that behavior consistent, but requires Facter.reset
when the $LOAD_PATH changes. Add that for cases besides apply and agent,
which already do Facter.reset.
Adds an acceptance test ensuring `puppet resource` can find custom facts
in `libdir`.
@MikaelSmith
Copy link
Contributor Author

I want to clean up the test a bit and verify the factspath(?) setting still works.

@peterhuene
Copy link
Contributor

👍 for review. Waiting on test update and then will merge.

Adds testing that factpath is still honored with the fix for PUP-4847.

[skip ci]
@MikaelSmith
Copy link
Contributor Author

Added testing factpath as a follow-on [skip ci] commit.

peterhuene added a commit that referenced this pull request Jul 10, 2015
(PUP-4847) Reset Facter after changing $LOAD_PATH
@peterhuene peterhuene merged commit cf9bde8 into puppetlabs:stable Jul 10, 2015
@puppetcla
Copy link

CLA signed by all contributors.

@MikaelSmith MikaelSmith deleted the bug/stable/PUP-4847 branch July 20, 2015 21:49
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.

3 participants