fix show_diff for test run

This commit is contained in:
Eren Güven 2015-09-09 14:58:59 +02:00
parent 602559f3a9
commit e71e9ab07f

View File

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