mirror of
https://github.com/ansible/awx.git
synced 2026-08-03 19:40:00 -02:30
Fix edge case in inventory import that would cause a group to become its own parent.
This commit is contained in:
@@ -649,7 +649,7 @@ class Command(NoArgsCommand):
|
||||
self.logger.info('Group "%s" variables updated', k)
|
||||
else:
|
||||
self.logger.info('Group "%s" variables unmodified', k)
|
||||
if self.inventory_source.group:
|
||||
if self.inventory_source.group and self.inventory_source.group != group:
|
||||
self.inventory_source.group.children.add(group)
|
||||
group.inventory_sources.add(self.inventory_source)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user