diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/modules/crypto/openssl_csr.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/modules/crypto/openssl_csr.py b/lib/ansible/modules/crypto/openssl_csr.py index c045f2594d..e2ffe38e02 100644 --- a/lib/ansible/modules/crypto/openssl_csr.py +++ b/lib/ansible/modules/crypto/openssl_csr.py @@ -911,9 +911,9 @@ class CertificateSigningRequestCryptography(CertificateSigningRequestBase): return False # Check criticality if self.basicConstraints: - if bc_ext.critical != self.basicConstraints_critical: - return False - return True + return bc_ext is not None and bc_ext.critical == self.basicConstraints_critical + else: + return bc_ext is None def _check_ocspMustStaple(extensions): try: |