Commit 9fd1b174 by Matt Saunders

Fixed tiny bug with _meta handling in external inventory scripts

parent 77b98df6
......@@ -110,7 +110,7 @@ class InventoryScript(object):
def get_host_variables(self, host):
""" Runs <script> --host <hostname> to determine additional host variables """
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment