mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
6c0dcf222c
commit
a65e621abd
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue