mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix --diff to respect no_log task parameter.
This commit is contained in:
@@ -615,4 +615,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||||||
diff['after_header'] = 'dynamically generated'
|
diff['after_header'] = 'dynamically generated'
|
||||||
diff['after'] = source
|
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
|
return diff
|
||||||
|
|||||||
Reference in New Issue
Block a user