mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
module/acme: Do not exit early when the certificate already exists
Otherwise, acme.cert might fail to cert permissions on the certificate. Close #48626
This commit is contained in:
parent
98af0db826
commit
d2241ceb2d
1 changed files with 2 additions and 5 deletions
|
@ -170,11 +170,8 @@ def cert(name,
|
|||
return {'result': False, 'comment': 'Certificate {0} renewal failed with:\n{1}'.format(name, res['stderr'])}
|
||||
|
||||
if 'no action taken' in res['stdout']:
|
||||
return {'result': None,
|
||||
'comment': 'No action taken on certificate {0}'.format(cert_file),
|
||||
'not_after': expires(name)}
|
||||
|
||||
if renew:
|
||||
comment = 'Certificate {0} unchanged'.format(cert_file)
|
||||
elif renew:
|
||||
comment = 'Certificate {0} renewed'.format(name)
|
||||
else:
|
||||
comment = 'Certificate {0} obtained'.format(name)
|
||||
|
|
Loading…
Add table
Reference in a new issue