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

pull/5907/merge
James Tanner 11 years ago
parent e121ff111d
commit 876035c0b1

@ -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…
Cancel
Save