mirror of
https://github.com/ansible/awx.git
synced 2026-04-11 21:19:22 -02:30
deny topology changes to iso instances via api
This commit is contained in:
@@ -120,6 +120,8 @@ class Instance(BaseModel):
|
||||
def is_controller(self):
|
||||
return Instance.objects.filter(rampart_groups__controller__instances=self).exists()
|
||||
|
||||
def is_isolated(self):
|
||||
return self.rampart_groups.filter(controller__isnull=False).exists()
|
||||
|
||||
def refresh_capacity(self):
|
||||
cpu = get_cpu_capacity()
|
||||
|
||||
Reference in New Issue
Block a user