Adding an additional note warning that the file will not be changed because test=True, but could be changed by other states.

This commit is contained in:
Gareth J. Greenaway 2019-03-05 17:06:51 -08:00
parent 6c0dcf222c
commit a65e621abd
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -2757,6 +2757,8 @@ def managed(name,
elif ret['changes']:
ret['result'] = None
ret['comment'] = 'The file {0} is set to be changed'.format(name)
ret['comment'] += ('\nNote: No changes made, actual changes may\n'
'be different due to other states.')
if 'diff' in ret['changes'] and not show_changes:
ret['changes']['diff'] = '<show_changes=False>'
else: