mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07: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:
parent
6982dfc756
commit
bda074d34e
5 changed files with 46 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue