inventory groups: make sure group.depth is updated on all grandchildren

This commit is contained in:
Serge van Ginderachter 2014-03-05 16:43:48 +01:00
parent 1c86909875
commit cc8efb4aab
2 changed files with 11 additions and 1 deletions

View file

@ -68,7 +68,6 @@ class InventoryDirectory(object):
self.groups[name] = group
else:
# group is already there, copy variables
# note: depth numbers on duplicates may be bogus
for k, v in group.get_variables().iteritems():
self.groups[name].set_variable(k, v)
for host in group.hosts: