diff --git a/plugins/module_utils/crypto/cryptography_support.py b/plugins/module_utils/crypto/cryptography_support.py index ad2c23c0..e12ed66f 100644 --- a/plugins/module_utils/crypto/cryptography_support.py +++ b/plugins/module_utils/crypto/cryptography_support.py @@ -73,7 +73,7 @@ def cryptography_get_extensions_from_cert(cert): try: # For certain old versions of cryptography, backend is a MultiBackend object, # which has no _lib attribute. In that case, revert to the old approach. - x = backend._lib + backend._lib except AttributeError: backend = cert._backend @@ -128,7 +128,7 @@ def cryptography_get_extensions_from_csr(csr): try: # For certain old versions of cryptography, backend is a MultiBackend object, # which has no _lib attribute. In that case, revert to the old approach. - x = backend._lib + backend._lib except AttributeError: backend = csr._backend @@ -549,7 +549,7 @@ def parse_pkcs12(pkcs12_bytes, passphrase=None): try: # For certain old versions of cryptography, backend is a MultiBackend object, # which has no _lib attribute. In that case, revert to the old approach. - x = backend._lib + backend._lib except AttributeError: backend = certificate._backend maybe_name = backend._lib.X509_alias_get0(certificate._x509, backend._ffi.NULL)