mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
fix tempating issues with no_log and loops (#44468)
* fix tempating issues with no_log and loops - task is no log if any item is - added test cases fixes #43294
This commit is contained in:
@@ -111,7 +111,7 @@ class TaskResult:
|
||||
else:
|
||||
ignore = _IGNORE
|
||||
|
||||
if self._task.no_log or self._result.get('_ansible_no_log', False):
|
||||
if isinstance(self._task.no_log, bool) and self._task.no_log or self._result.get('_ansible_no_log', False):
|
||||
x = {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
|
||||
|
||||
# preserve full
|
||||
|
||||
Reference in New Issue
Block a user