diff options
author | gp <gp@gparent.net> | 2020-03-01 21:32:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 21:32:49 +0100 |
commit | 44d8ce9b31af4b529e4e833803b5ccc28ec37fff (patch) | |
tree | ad9a0df004004a1d568b29d00232507bef2f7e47 | |
parent | Fix ansible-test module_utils analysis. (diff) | |
download | ansible-44d8ce9b31af4b529e4e833803b5ccc28ec37fff.tar.xz ansible-44d8ce9b31af4b529e4e833803b5ccc28ec37fff.zip |
Remove redundant check for pyopenssl (#67901)
-rw-r--r-- | changelogs/fragments/67901-get_certificate-fix-cryptography.yml | 2 | ||||
-rw-r--r-- | lib/ansible/modules/crypto/get_certificate.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/changelogs/fragments/67901-get_certificate-fix-cryptography.yml b/changelogs/fragments/67901-get_certificate-fix-cryptography.yml new file mode 100644 index 0000000000..09f4c56a81 --- /dev/null +++ b/changelogs/fragments/67901-get_certificate-fix-cryptography.yml @@ -0,0 +1,2 @@ +bugfixes: +- get_certificate - Fix cryptography backend when pyopenssl is unavailable (https://github.com/ansible/ansible/issues/67900) diff --git a/lib/ansible/modules/crypto/get_certificate.py b/lib/ansible/modules/crypto/get_certificate.py index 3aed838d68..29b5c7ff01 100644 --- a/lib/ansible/modules/crypto/get_certificate.py +++ b/lib/ansible/modules/crypto/get_certificate.py @@ -258,9 +258,6 @@ def main(): changed=False, ) - if not PYOPENSSL_FOUND: - module.fail_json(msg=missing_required_lib('pyOpenSSL >= 0.15'), exception=PYOPENSSL_IMP_ERR) - if timeout: setdefaulttimeout(timeout) |