Skip to content

Conversation

adrienthebo
Copy link

The previous implementation of Facter search paths was only additive and
there was no way to remove Facter search paths once added. This is
especially problematic when running the Puppet specs which wind up
reloading Facter frequently and adding search paths, and can wind up
adding thousands of meaningless paths. This commit resets the Facter
search path on Facter.reset so that when facts are reset, the known
search pats are reset as well.

The previous implementation of Facter search paths was only additive and
there was no way to remove Facter search paths once added. This is
especially problematic when running the Puppet specs which wind up
reloading Facter frequently and adding search paths, and can wind up
adding thousands of meaningless paths. This commit resets the Facter
search path on `Facter.reset` so that when facts are reset, the known
search pats are reset as well.
@puppetcla
Copy link

CLA signed by all contributors.

kylog pushed a commit that referenced this pull request Feb 11, 2014
…h-path-on-reset

(maint) Reset facter search path when resetting facts
@kylog kylog merged commit b43d6a7 into puppetlabs:facter-2 Feb 11, 2014
@adrienthebo adrienthebo deleted the maint/facter-2/cleanup-search-path-on-reset branch February 11, 2014 00:59
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