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...
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