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

(#22128) Yum prefetch spec ensures use of yum provider #1837

Conversation

jpartlow
Copy link
Contributor

The prefetch spec for the Yum package provider was failing on platforms
whose default providers did not have the same capabilities (definitely
on Windows for msi), because the previous implementation was generating type
instances of Puppet::Type::Package without setting their providers.
Consequently these instances were being generated with references to the
platform's default providers, and might fail to set :ensure =>
:latest due to missing capabilities.

The spec is changed to associate instances of yum providers with the
package type instances being passed into prefetch. Also removed the
confine for Windows.

This also clears up a typo that got through in the original patch, which
was failing on only some platforms.

The prefetch spec for the Yum package provider was failing on platforms
whose default providers did not have the same capabilities (definitely
on Windows for msi), because the previous implementation was generating type
instances of Puppet::Type::Package without setting their providers.
Consequently these instances were being generated with references to the
platform's default providers, and might fail to set :ensure =>
:latest due to missing capabilities.

The spec is changed to associate instances of yum providers with the
package type instances being passed into prefetch.  Also removed the
confine for Windows.

This also clears up a typo that got through in the original patch, which
was failing on only some platforms.
@puppetcla
Copy link

CLA signed by all contributors.

zaphod42 added a commit that referenced this pull request Aug 13, 2013
…h-failure-solaris-spec-fix

(#22128) Yum prefetch spec ensures use of yum provider
@zaphod42 zaphod42 merged commit 5150d7f into puppetlabs:master Aug 13, 2013
@jpartlow jpartlow deleted the issue/master/22128-yum-prefetch-failure-solaris-spec-fix branch November 21, 2013 20:11
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