do not use inventory source instance groups

This commit is contained in:
AlanCoding
2017-08-04 12:34:29 -04:00
parent 59d52df6d9
commit aca1efa552
2 changed files with 3 additions and 3 deletions

View File

@@ -1522,8 +1522,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions, JobNotificationMixin,
organization_groups = []
if self.inventory_source.inventory is not None:
inventory_groups = [x for x in self.inventory_source.inventory.instance_groups.all()]
template_groups = [x for x in super(InventoryUpdate, self).preferred_instance_groups]
selected_groups = template_groups + inventory_groups + organization_groups
selected_groups = inventory_groups + organization_groups
if not selected_groups:
return self.global_instance_groups
return selected_groups