ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
816 stars 1.5k forks source link

homectl, udm_user: guard crypt imports #8497

Closed felixfontein closed 3 months ago

felixfontein commented 3 months ago
SUMMARY

Now that ansible-core devel's ansible-test also tests with Python 3.13, in which the crypt standard library module has been removed, we have to do something about these two modules using that part of the standard library.

This PR makes the crypt import guarded and lets the module fail with an expressive error message. It would be better to get rid of the crypt usages, but that's for someone else...

Ref: https://github.com/ansible-collections/community.general/issues/4691 Ref: https://github.com/ansible-collections/community.general/issues/4690

ISSUE TYPE
COMPONENT NAME

homectl udm_user

patchback[bot] commented 3 months ago

Backport to stable-8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-8/f0940d82dc53f843e598d073a7ed102f8e50e628/pr-8497

Backported as https://github.com/ansible-collections/community.general/pull/8498

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

patchback[bot] commented 3 months ago

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/f0940d82dc53f843e598d073a7ed102f8e50e628/pr-8497

Backported as https://github.com/ansible-collections/community.general/pull/8499

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