Make sure VariableManager has a view of HostVars

Fixes #15261
This commit is contained in:
James Cammarata 2016-04-05 11:31:00 -04:00
parent cca084c89d
commit 0f2b1244d2
4 changed files with 15 additions and 15 deletions

View file

@ -143,7 +143,7 @@ class ResultProcess(multiprocessing.Process):
if result._task.loop:
# this task had a loop, and has more than one result, so
# loop over all of them instead of a single result
result_items = result._result['results']
result_items = result._result.get('results', [])
else:
result_items = [ result._result ]