mirror of
https://github.com/ansible/awx.git
synced 2026-07-03 20:38:02 -02:30
add all instances to special tower instance group
* All instances except isolated instances * Also, prevent any tower attributes from being modified via the API
This commit is contained in:
@@ -159,6 +159,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