2531d54880
Change: - On Python 3.9, `crypt.crypt` will throw instead of returning `None` when the algorithm isn't supported. So we catch that and handle it the same way we handled the algorithm not being supported on 3.8: by throwing AnsibleError. Test Plan: - CI for <=3.8. - Local for 3.9b3: ansible -m debug -a "msg=\"{{ 'changeme' | password_hash('bcrypt') }}\"" localhost Before: localhost | FAILED! => { "msg": "Unexpected failure during module execution.", "stdout": "" } After: localhost | FAILED! => { "msg": "crypt.crypt does not support 'bcrypt' algorithm" } Tickets: - Fixes #69930 Signed-off-by: Rick Elrod <rick@elrod.me> |
||
---|---|---|
.. | ||
565_default_callback.yml | ||
63105-wcswidth.yml | ||
70017-avoid-params-to-callable-checkers.yml | ||
70148-galaxy-role-info.yaml | ||
70168-fix-delegate_facts-without-interpreter-set.yml | ||
ansible-boilerplate.yml | ||
ansible-test-cleanup-pylint-config.yml | ||
ansible-test-pylint-plugin-name.yml | ||
ansible-test-rhel-requirements.yml | ||
ansible-test-sanity-importer-cleanup.yml | ||
ansible-test-sanity-yamllint-lineno.yml | ||
changelog-yaml.yml | ||
crypt-oserror.yml | ||
deprecation-callback-get_item.yml | ||
deprecation-strategy-SharedPluginLoaderObj.yml | ||
deprecation-systemd-user.yml | ||
deprecation-taskexecutor-squash.yml | ||
plugin-loader-cleanup.yml | ||
v2.11.0-initial-commit.yaml | ||
win_setup-redirection.yaml |