mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
don't show diff for test run if show_diff=False
This commit is contained in:
parent
088b1dbb3e
commit
ec2d68a84a
1 changed files with 2 additions and 0 deletions
|
@ -1468,6 +1468,8 @@ def managed(name,
|
|||
if ret['changes']:
|
||||
ret['result'] = None
|
||||
ret['comment'] = 'The file {0} is set to be changed'.format(name)
|
||||
if not show_diff:
|
||||
ret['changes']['diff'] = '<show_diff=False>'
|
||||
else:
|
||||
ret['result'] = True
|
||||
ret['comment'] = 'The file {0} is in the correct state'.format(name)
|
||||
|
|
Loading…
Add table
Reference in a new issue