mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-31 00:51:23 -07:00
fix displaying group vars in graph
This commit is contained in:
parent
5828023e54
commit
265d838ec9
1 changed files with 2 additions and 3 deletions
|
@ -230,8 +230,7 @@ class InventoryCLI(CLI):
|
||||||
# get info from inventory source
|
# get info from inventory source
|
||||||
res = group.get_vars()
|
res = group.get_vars()
|
||||||
|
|
||||||
# FIXME: add switch to skip vars plugins
|
# FIXME: add switch to skip vars plugins, add vars plugin info
|
||||||
# add vars plugin info
|
|
||||||
for inventory_dir in self.inventory._sources:
|
for inventory_dir in self.inventory._sources:
|
||||||
res = combine_vars(res, self.get_plugin_vars(inventory_dir, group))
|
res = combine_vars(res, self.get_plugin_vars(inventory_dir, group))
|
||||||
|
|
||||||
|
@ -301,7 +300,7 @@ class InventoryCLI(CLI):
|
||||||
result.append(self._graph_name(host.name, depth))
|
result.append(self._graph_name(host.name, depth))
|
||||||
result.extend(self._show_vars(host.get_vars(), depth + 1))
|
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
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue