community.general/lib/ansible/modules/crypto
Yanis Guenane 99497ce54c openssl_certificate: Handle dump() in check_mode (#38386)
Currently, when ones run the module in check_mode it tries to retrieve
values from the actual certificate generated in the generate() function.

Since in check_mode we call dump() without calling generate(), self.cert
is None, leading to self.cert.get_notBefore(), self.cert.get_notAfter()
and self.cert.get_serial_number() raising an error.

>  NoneType' object has no attribute 'get_notBefore'

The solution is to have two way to handle dump() method, whether its run
in check_mode=True or check_mode=False leading to different way the
information is retrieved.
2018-04-09 09:26:02 +01:00
..
__init__.py
openssl_certificate.py openssl_certificate: Handle dump() in check_mode (#38386) 2018-04-09 09:26:02 +01:00
openssl_csr.py Code style words in docs 2018-02-08 15:58:01 -05:00
openssl_dhparam.py Module to generate Diffie-Hellman parameters (#32620) 2018-01-26 08:08:29 +00:00
openssl_privatekey.py Fix documentation about mode in openssl_privatekey (#32664) 2017-12-07 04:47:23 -05:00
openssl_publickey.py crypto: Fix incorrect type for privatekey_passphrase (#36868) 2018-02-28 17:19:22 +01:00