mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
fix show_diff for test run
This commit is contained in:
parent
602559f3a9
commit
e71e9ab07f
@ -1452,6 +1452,8 @@ def managed(name,
|
||||
if ret['pchanges']:
|
||||
ret['result'] = None
|
||||
ret['comment'] = 'The file {0} is set to be changed'.format(name)
|
||||
if show_diff:
|
||||
ret['changes']['diff'] = ret['pchanges']['diff']
|
||||
else:
|
||||
ret['result'] = True
|
||||
ret['comment'] = 'The file {0} is in the correct state'.format(name)
|
||||
|
Loading…
Reference in New Issue
Block a user