From 265d838ec985a3e92058ba9a642329465cb54ae2 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 13 Apr 2018 12:03:57 -0400 Subject: [PATCH] fix displaying group vars in graph --- lib/ansible/cli/inventory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ansible/cli/inventory.py b/lib/ansible/cli/inventory.py index d5fefadbf42..008fc74131c 100644 --- a/lib/ansible/cli/inventory.py +++ b/lib/ansible/cli/inventory.py @@ -230,8 +230,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)) @@ -301,7 +300,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