Commit 0ad6ac40 by Michael DeHaan

Fix group depth for nested groups

parent 85b52ca6
......@@ -36,7 +36,7 @@ class Group(object):
if self == group:
raise Exception("can't add group to itself")
self.child_groups.append(group)
group.depth = group.depth + 1
group.depth = max([self.depth+1, group.depth])
group.parent_groups.append(self)
def add_host(self, host):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment