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:
parent
ad0827e5c0
commit
5bdd91d75f
1 changed files with 1 additions and 0 deletions
|
@ -779,6 +779,7 @@ class AcmeCertificate(Certificate):
|
||||||
check_rc=True)[1]
|
check_rc=True)[1]
|
||||||
with open(self.path, 'wb') as certfile:
|
with open(self.path, 'wb') as certfile:
|
||||||
certfile.write(to_bytes(crt))
|
certfile.write(to_bytes(crt))
|
||||||
|
self.changed = True
|
||||||
except OSError as exc:
|
except OSError as exc:
|
||||||
raise CertificateError(exc)
|
raise CertificateError(exc)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue