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)