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

Missing name property makes prefetch fail for rhsm_pool resource #100

Open
imp- opened this issue Apr 29, 2020 · 0 comments
Open

Missing name property makes prefetch fail for rhsm_pool resource #100

imp- opened this issue Apr 29, 2020 · 0 comments

Comments

@imp-
Copy link

imp- commented Apr 29, 2020

I have been trying to automatically purge all rhsm_pool resources that are not present in the catalog, but have hit this error in doing so:

Failed to generate additional resources using 'generate': No resource and no name in property hash in subscription_manager instance

It appears the 'name' property of the rhsm_pool resource was removed in commit b65cae3 and the id property is marked as namevar. This is fine, except when we have to deal with prefetching resources like in this scenario.

I did some research and discovered this is a known issue, see PUP-7935.
We can validate this in the puppet source code and see that the 'name' property is hardcoded.

The only workaround is to re-introduce the 'name' property.

I will provide a pull request shortly.

imp- added a commit to InfrabelLinux/puppet-subscription_manager that referenced this issue Apr 29, 2020
@waveclaw waveclaw added this to the 5.0.0 milestone Jan 3, 2023
@waveclaw waveclaw self-assigned this Jan 3, 2023
@waveclaw waveclaw added the bug label Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants