Fix --diff to respect no_log task parameter.

pull/14404/head
Toshio Kuratomi 9 years ago
parent bee699a33a
commit 3303f25a0c

@ -609,4 +609,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
diff['after_header'] = 'dynamically generated'
diff['after'] = source
if self._play_context.no_log and 'after' in diff:
diff["after"] = " [[ Diff output has been hidden because 'no_log: true' was specified for this result ]]"
return diff

Loading…
Cancel
Save