ansible/test
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
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
integration openssl_certificate: Handle dump() in check_mode (#38386) 2018-04-09 09:26:02 +01:00
legacy Add OpenNebula one_image_facts module (#38169) 2018-04-04 22:53:31 +02:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Multiple ansible-test fixes. (#38247) 2018-04-03 18:53:53 -07:00
sanity Tolerate win line endings on windows module_util load (#37291) 2018-04-06 07:13:31 +10:00
units Reduce recursion within group methods 2018-04-05 18:38:44 -04:00
utils Fix building from ubuntu1404 Dockerfile 2018-03-28 14:17:31 -07:00