mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
use task manager models more consistently in serializer
This commit is contained in:
@@ -394,6 +394,8 @@ class InstanceGroup(HasPolicyEditsMixin, BaseModel, RelatedJobsMixin):
|
||||
|
||||
@property
|
||||
def capacity(self):
|
||||
if self.is_container_group:
|
||||
return self.max_forks
|
||||
return sum(inst.capacity for inst in self.instances.all())
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user