1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix usage of set_host_var when registering a result var

Fixes #11521
This commit is contained in:
James Cammarata 2015-07-08 09:15:55 -04:00
parent 2e5dfd57cc
commit 8f0496d7ce

View file

@ -107,7 +107,7 @@ class ResultProcess(multiprocessing.Process):
# if this task is registering a result, do it now
if result._task.register:
self._send_result(('set_host_var', result._host, result._task.register, result._result))
self._send_result(('set_host_var', result._host, result._task, None, 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.