mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
preserve no_log for async also
This commit is contained in:
@@ -441,6 +441,9 @@ class TaskExecutor:
|
|||||||
if self._task.poll > 0:
|
if self._task.poll > 0:
|
||||||
result = self._poll_async_result(result=result, templar=templar)
|
result = self._poll_async_result(result=result, templar=templar)
|
||||||
|
|
||||||
|
# ensure no log is preserved
|
||||||
|
result["_ansible_no_log"] = self._play_context.no_log
|
||||||
|
|
||||||
# helper methods for use below in evaluating changed/failed_when
|
# helper methods for use below in evaluating changed/failed_when
|
||||||
def _evaluate_changed_when_result(result):
|
def _evaluate_changed_when_result(result):
|
||||||
if self._task.changed_when is not None:
|
if self._task.changed_when is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user