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

BUGFIX : using yaml hosts inventory, hosts in groups weren't added to the group 'all'

This commit is contained in:
Pierre-Alexandre 2017-04-06 18:46:30 +02:00 committed by Brian Coca
parent 621e27b5dd
commit 283a88444f

View file

@ -71,7 +71,7 @@ class InventoryParser(object):
# 'all' at the time it was created.
for group in self.groups.values():
if group.depth == 0 and group.name not in ('all', 'ungrouped'):
self.groups['all'].add_child_group(Group(group_name))
self.groups['all'].add_child_group(group)
def _parse_groups(self, group, group_data):