don't show diff for test run if show_diff=False

This commit is contained in:
Eren Güven 2015-09-15 12:03:01 +02:00
parent 088b1dbb3e
commit ec2d68a84a

View file

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