mirror of
https://github.com/ansible/awx.git
synced 2026-01-26 16:11:30 -03:30
AC-810 Fix setup logic to enable SE bool. Create related inventory_source for each group on import.
This commit is contained in:
parent
0b159e0ab4
commit
b68904a815
@ -587,6 +587,8 @@ class Command(NoArgsCommand):
|
||||
defaults = dict(variables=variables, description='imported')
|
||||
group, created = self.inventory.groups.get_or_create(name=k,
|
||||
defaults=defaults)
|
||||
# Access auto one-to-one attribute to create related object.
|
||||
group.inventory_source
|
||||
if created:
|
||||
self.logger.info('Group "%s" added', k)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user