mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
no_log even when task_result doesn't provide key
- now also checks task property - added reproducer to tests for unreachable status on item loop
This commit is contained in:
committed by
Toshio Kuratomi
parent
40d2df0ef3
commit
336b3762b2
@@ -112,7 +112,7 @@ class TaskResult:
|
||||
else:
|
||||
ignore = _IGNORE
|
||||
|
||||
if self._result.get('_ansible_no_log', False):
|
||||
if 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"}
|
||||
for preserve in _PRESERVE:
|
||||
if preserve in self._result:
|
||||
|
||||
Reference in New Issue
Block a user