Make sure run_once tasks properly set variables for all active hosts

Fixes #13267
This commit is contained in:
James Cammarata 2015-11-30 11:27:05 -05:00
parent fbc9553bd4
commit 80db6bacc4
2 changed files with 29 additions and 14 deletions

View file

@ -110,7 +110,7 @@ class ResultProcess(multiprocessing.Process):
# if this task is registering a result, do it now
if result._task.register:
self._send_result(('register_host_var', result._host, result._task.register, clean_copy))
self._send_result(('register_host_var', result._host, result._task, clean_copy))
# send callbacks, execute other options based on the result status
# TODO: this should all be cleaned up and probably moved to a sub-function.