ansible-collections / community.general

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

[PR #8497/f0940d82 backport][stable-9] homectl, udm_user: guard crypt imports #8499

Closed patchback[bot] closed 3 weeks ago

patchback[bot] commented 3 weeks ago

This is a backport of PR #8497 as merged into main (f0940d82dc53f843e598d073a7ed102f8e50e628).

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

ansibullbot commented 3 weeks ago

cc @jameslivulpi @keachi click here for bot help