1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Return changed=True if a new certificate was written (#41445)

This commit is contained in:
Michael Scherer 2018-06-12 16:17:29 +02:00 committed by ansibot
parent ad0827e5c0
commit 5bdd91d75f

View file

@ -779,6 +779,7 @@ class AcmeCertificate(Certificate):
check_rc=True)[1]
with open(self.path, 'wb') as certfile:
certfile.write(to_bytes(crt))
self.changed = True
except OSError as exc:
raise CertificateError(exc)