Merge pull request #3885 from tidzo/devel

Fixed tiny bug with _meta handling in external inventory scripts
This commit is contained in:
Michael DeHaan 2013-08-19 12:08:48 -07:00
commit 8e23d509d3

View file

@ -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