inventory directory parser: add groups to parent_groups non-recursively
This commit is contained in:
parent
262ba0460a
commit
8b215149d4
1 changed files with 2 additions and 2 deletions
|
@ -83,8 +83,8 @@ class InventoryDirectory(object):
|
|||
|
||||
# This needs to be a second loop to ensure all the parent groups exist
|
||||
for name, group in parser.groups.iteritems():
|
||||
for ancestor in group.get_ancestors():
|
||||
self.groups[ancestor.name].add_child_group(self.groups[name])
|
||||
for parent in group.parent_groups:
|
||||
self.groups[parent.name].add_child_group(self.groups[name])
|
||||
|
||||
def get_host_variables(self, host):
|
||||
""" Gets additional host variables from all inventories """
|
||||
|
|
Loading…
Reference in a new issue