mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30720 from clinta/fix-pem-managed-changes
x509.pem_managed does not return changes dict
This commit is contained in:
commit
1f0d0f591e
1 changed files with 5 additions and 2 deletions
|
@ -347,11 +347,11 @@ def certificate_managed(name,
|
|||
Path to the certificate
|
||||
|
||||
days_remaining:
|
||||
The minimum number of days remaining when the certificate should be recreted. Default is 90. A
|
||||
The minimum number of days remaining when the certificate should be recreated. Default is 90. A
|
||||
value of 0 disables automatic renewal.
|
||||
|
||||
backup:
|
||||
When replacing an existing file, backup the old file onthe minion. Default is False.
|
||||
When replacing an existing file, backup the old file on the minion. Default is False.
|
||||
|
||||
kwargs:
|
||||
Any arguments supported by :mod:`x509.create_certificate <salt.modules.x509.create_certificate>`
|
||||
|
@ -624,6 +624,9 @@ def pem_managed(name,
|
|||
ret['comment'] = 'The file is already in the correct state'
|
||||
return ret
|
||||
|
||||
ret['changes']['new'] = new
|
||||
ret['changes']['old'] = current
|
||||
|
||||
if __opts__['test'] is True:
|
||||
ret['result'] = None
|
||||
ret['comment'] = 'The file {0} will be updated.'.format(name)
|
||||
|
|
Loading…
Add table
Reference in a new issue