Commit 876035c0 by James Tanner

Fixes #6161 Get the delegate host info properly from the hostvars object

parent e121ff11
...@@ -324,9 +324,9 @@ class Runner(object): ...@@ -324,9 +324,9 @@ class Runner(object):
this_host = delegate['host'] this_host = delegate['host']
# get the vars for the delegate by it's name # get the vars for the delegate by it's name
if this_host in delegate['inject']['hostvars']: try:
this_info = delegate['inject']['hostvars'][this_host] this_info = delegate['inject']['hostvars'][this_host]
else: except:
# make sure the inject is empty for non-inventory hosts # make sure the inject is empty for non-inventory hosts
this_info = {} this_info = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment