mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
now that invocation is only async again, no need to sanitize
This commit is contained in:
@@ -33,7 +33,6 @@ try:
|
||||
except ImportError:
|
||||
HAS_ATFORK=False
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible.playbook.handler import Handler
|
||||
from ansible.playbook.task import Task
|
||||
|
||||
@@ -108,10 +107,7 @@ class ResultProcess(multiprocessing.Process):
|
||||
|
||||
# if this task is registering a result, do it now
|
||||
if result._task.register:
|
||||
res = {}
|
||||
for k in set(result._result.keys()).difference(C.RESULT_SANITIZE):
|
||||
res[k] = result._result[k]
|
||||
self._send_result(('register_host_var', result._host, result._task.register, res))
|
||||
self._send_result(('register_host_var', result._host, result._task.register, result._result))
|
||||
|
||||
# send callbacks, execute other options based on the result status
|
||||
# FIXME: this should all be cleaned up and probably moved to a sub-function.
|
||||
|
||||
Reference in New Issue
Block a user