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

This commit is contained in:
James Tanner 2014-02-25 11:18:06 -05:00
parent e121ff111d
commit 876035c0b1

View file

@ -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 = {}