mirror of
https://github.com/ansible/awx.git
synced 2026-07-01 11:28:02 -02:30
Merge pull request #1154 from chrismeyersfsu/enhancement-tower_in_all_groups
add all instances to special tower instance group
This commit is contained in:
@@ -163,6 +163,10 @@ class InstanceGroup(models.Model, RelatedJobsMixin):
|
||||
def _get_related_jobs(self):
|
||||
return UnifiedJob.objects.filter(instance_group=self)
|
||||
|
||||
def add_all_non_iso_instances(self):
|
||||
self.instances = Instance.objects.all_non_isolated()
|
||||
self.save()
|
||||
|
||||
|
||||
class Meta:
|
||||
app_label = 'main'
|
||||
|
||||
Reference in New Issue
Block a user