From 5a27b231214e318156d79220df3ea89347879377 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 30 Sep 2021 22:32:57 +0200 Subject: [PATCH] Remove unnecessary assignment. --- plugins/module_utils/crypto/cryptography_support.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)