mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -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:
@@ -113,6 +113,9 @@ class InstanceManager(models.Manager):
|
||||
# NOTE: TODO: Likely to repurpose this once standalone ramparts are a thing
|
||||
return "tower"
|
||||
|
||||
def all_non_isolated(self):
|
||||
return self.filter(rampart_groups__controller__isnull=True).distinct()
|
||||
|
||||
|
||||
class InstanceGroupManager(models.Manager):
|
||||
"""A custom manager class for the Instance model.
|
||||
|
||||
Reference in New Issue
Block a user