Fixes #6161 Get the delegate host info properly from the hostvars object
This commit is contained in:
parent
e121ff111d
commit
876035c0b1
1 changed files with 2 additions and 2 deletions
|
@ -324,9 +324,9 @@ class Runner(object):
|
|||
this_host = delegate['host']
|
||||
|
||||
# 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]
|
||||
else:
|
||||
except:
|
||||
# make sure the inject is empty for non-inventory hosts
|
||||
this_info = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue