1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

InventoryDir: fixing yet another corner case

This commit is contained in:
Serge van Ginderachter 2014-08-08 08:54:11 +02:00
parent 2d54448064
commit 7c96f1d803

View file

@ -113,7 +113,7 @@ class InventoryDirectory(object):
for group in allgroup.child_groups[:]: for group in allgroup.child_groups[:]:
# groups might once have beeen added to all, and later be added # groups might once have beeen added to all, and later be added
# to another group: we need to remove the link wit all then # to another group: we need to remove the link wit all then
if len(group.parent_groups) > 1: if len(group.parent_groups) > 1 and allgroup in group.parent_groups:
# real children of all have just 1 parent, all # real children of all have just 1 parent, all
# this one has more, so not a direct child of all anymore # this one has more, so not a direct child of all anymore
group.parent_groups.remove(allgroup) group.parent_groups.remove(allgroup)