mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixed tiny bug with _meta handling in external inventory scripts
This commit is contained in:
parent
77b98df63b
commit
9fd1b174f5
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class InventoryScript(object):
|
||||||
def get_host_variables(self, host):
|
def get_host_variables(self, host):
|
||||||
""" Runs <script> --host <hostname> to determine additional host variables """
|
""" Runs <script> --host <hostname> to determine additional host variables """
|
||||||
if self.host_vars_from_top is not None:
|
if self.host_vars_from_top is not None:
|
||||||
got = self.host_vars_from_top.get(host, {})
|
got = self.host_vars_from_top.get(host.name, {})
|
||||||
return got
|
return got
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue