mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 20:02:45 +00:00
Fixes #6161 Get the delegate host info properly from the hostvars object
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user