mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
99497ce54c
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. |
||
---|---|---|
.. | ||
host_vars | ||
targets | ||
cloud-config-aws.yml.template | ||
cloud-config-azure.yml.template | ||
cloud-config-cs.ini.template | ||
cloud-config-gcp.yml.template | ||
cloud-config-openshift.kubeconfig.template | ||
cloud-config-tower.cfg.template | ||
integration.cfg | ||
integration_config.yml | ||
inventory | ||
inventory.networking.template | ||
inventory.remote.template | ||
inventory.winrm.template | ||
network-integration.cfg | ||
nxos.yaml | ||
target-prefixes.network | ||
windows-integration.cfg |