Merge pull request #30720 from clinta/fix-pem-managed-changes

x509.pem_managed does not return changes dict
This commit is contained in:
Nicole Thomas 2016-01-29 10:07:25 -07:00
commit 1f0d0f591e

View file

@ -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)