AC-810 Fix setup logic to enable SE bool. Create related inventory_source for each group on import.

This commit is contained in:
Chris Church 2013-12-14 09:14:10 -05:00
parent 0b159e0ab4
commit b68904a815

View File

@ -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: