You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/changelogs
John R Barker 4f0389ad4e
Backport/2.5/38386 (#38462)
* 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.
(cherry picked from commit 99497ce54c)
7 years ago
..
fragments Backport/2.5/38386 (#38462) 7 years ago
CHANGELOG-legacy.rst rename versioned CHANGELOGs with dash 7 years ago
CHANGELOG-v2.0.rst sync old changelogs 7 years ago
CHANGELOG-v2.1.rst sync old changelogs 7 years ago
CHANGELOG-v2.2.rst sync old changelogs 7 years ago
CHANGELOG-v2.3.rst sync old changelogs 7 years ago
CHANGELOG-v2.4.rst sync old changelogs 7 years ago
CHANGELOG-v2.5.rst New release v2.5.0 7 years ago
config.yaml reformat multiline bugfix entries 7 years ago