mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-19 23:00:22 -07:00
removed dict comprehension as 2.6 does not like
This commit is contained in:
parent
032690a843
commit
4203b699a8
2 changed files with 7 additions and 2 deletions
|
@ -108,7 +108,9 @@ class ResultProcess(multiprocessing.Process):
|
|||
|
||||
# if this task is registering a result, do it now
|
||||
if result._task.register:
|
||||
res = {k: result._result[k] for k in set(result._result.keys()).difference(C.RESULT_SANITIZE)}
|
||||
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))
|
||||
|
||||
# send callbacks, execute other options based on the result status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue