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

(maint) Fix spec failures resulting from Facter API changes between 1.x and 2.x #100

Merged
merged 1 commit into from
Oct 25, 2012

Conversation

jeffmccune
Copy link
Contributor

Without this patch stdlib tests fail against Facter 2.x and master but not
1.6.x.

This patch fixes the problem by initializing the example group differently
depending on the version of Facter integrating into the system. The adjusted
methods are:

1.x - Facter.collection.loader.load
2.x - Facter.collection.load

The collection actually implements the load method in both version, it's
simply marked as private in 1.x.

Without this patch stdlib tests fail against Facter 2.x and master but
not 1.6.x.

This patch fixes the problem by initializing the example group
differently depending on the version of Facter integrating into the
system.  The adjusted methods are:

 1.x - Facter.collection.loader.load
 2.x - Facter.collection.load

The collection actually implements the load method in both version, it's
simply marked as private in 1.x.
@jeffmccune jeffmccune merged commit 97f836f into puppetlabs:2.5.x Oct 25, 2012
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