Skip to content

Conversation

@russoz
Copy link
Collaborator

@russoz russoz commented Nov 11, 2025

SUMMARY
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/modules/filesize.py
plugins/modules/flatpak_remote.py
plugins/modules/hg.py
plugins/modules/ip_netns.py
plugins/modules/ipa_pwpolicy.py
plugins/modules/iso_customize.py
plugins/modules/ldap_search.py
plugins/modules/nomad_job.py
plugins/modules/nosh.py
plugins/modules/ocapi_command.py
plugins/modules/ocapi_info.py
plugins/modules/packet_project.py
plugins/modules/packet_volume.py
plugins/modules/portage.py
plugins/modules/redhat_subscription.py
plugins/modules/snap.py
plugins/modules/xml.py

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module plugins plugin (any type) redhat_subscription labels Nov 11, 2025
@ptoscano
Copy link
Contributor

@russoz the changes in redhat_subscription seems fine; that said, there are more occurrences in that file that can be removed, i.e. all of them except the one in subscribe_by_pool_ids().

@russoz
Copy link
Collaborator Author

russoz commented Nov 11, 2025

@russoz the changes in redhat_subscription seems fine; that said, there are more occurrences in that file that can be removed, i.e. all of them except the one in subscribe_by_pool_ids().

Thanks for reviewing @ptoscano ! I think the one in subscribe_by_pool_ids() can be replaced with str(). WDYT?

@ptoscano
Copy link
Contributor

I think the one in subscribe_by_pool_ids() can be replaced with str(). WDYT?

That is part of the pool management code of the module, which is tied to the entitlement mode for content access, which has been long deprecated by Red Hat, and on its way out of being supported. So I recommend to keep that code as-is, and I'll likely think about deprecating (with the goal to remove) the subscriptions management part.

Leaving one instance of to_native() around for now should not be a problem, should it?

@russoz
Copy link
Collaborator Author

russoz commented Nov 11, 2025

No problem at all! Thanks for taking a look into it though!

@russoz
Copy link
Collaborator Author

russoz commented Nov 11, 2025

please merge after #11105

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-12 Automatically create a backport for the stable-12 branch labels Nov 11, 2025
@ptoscano
Copy link
Contributor

The changes in plugins/modules/redhat_subscription.py LGTM.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Nov 12, 2025
@felixfontein felixfontein merged commit f785e9c into ansible-collections:main Nov 12, 2025
134 checks passed
@patchback
Copy link

patchback bot commented Nov 12, 2025

Backport to stable-12: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-12/f785e9c7803dc7194e8f44ed441bb330ba127147/pr-11106

Backported as #11140

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 12, 2025
* replace batch of redundant to_native()/to_text() occurrences

* add changelog frag

* snap sanity

* rolling back snap for now

* more cases in redhat_subscription

(cherry picked from commit f785e9c)
@felixfontein
Copy link
Collaborator

@russoz thanks for your contribution!
@ptoscano thanks for reviewing!

@russoz russoz deleted the to-native-e-5 branch November 12, 2025 20:43
felixfontein pushed a commit that referenced this pull request Nov 12, 2025
…o_native()/to_text() occurrences (#11140)

replace batch of redundant to_native()/to_text() occurrences (#11106)

* replace batch of redundant to_native()/to_text() occurrences

* add changelog frag

* snap sanity

* rolling back snap for now

* more cases in redhat_subscription

(cherry picked from commit f785e9c)

Co-authored-by: Alexei Znamensky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-12 Automatically create a backport for the stable-12 branch feature This issue/PR relates to a feature request module module plugins plugin (any type) redhat_subscription

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants