fix displaying group vars in graph

(cherry picked from commit 265d838ec9)
pull/38975/head
Brian Coca 7 years ago committed by Matt Davis
parent 003c52f1ef
commit 145f42eba3

@ -228,8 +228,7 @@ class InventoryCLI(CLI):
# get info from inventory source
res = group.get_vars()
# FIXME: add switch to skip vars plugins
# add vars plugin info
# FIXME: add switch to skip vars plugins, add vars plugin info
for inventory_dir in self.inventory._sources:
res = combine_vars(res, self.get_plugin_vars(inventory_dir, group))
@ -299,7 +298,7 @@ class InventoryCLI(CLI):
result.append(self._graph_name(host.name, depth))
result.extend(self._show_vars(host.get_vars(), depth + 1))
result.extend(self._show_vars(group.get_vars(), depth))
result.extend(self._show_vars(self._get_group_variables(group), depth))
return result

Loading…
Cancel
Save