Treat the awx_1 node as a hybrid node for now, use local work type (#10726)

This commit is contained in:
Alan Rominger
2021-07-22 15:35:10 -04:00
parent 264c560a8a
commit 9881bb72b8
2 changed files with 5 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ class InstanceGroup(HasPolicyEditsMixin, BaseModel, RelatedJobsMixin):
@property
def execution_capacity(self):
# TODO: update query to exclude based on node_type field
return sum([inst.capacity for inst in self.instances.filter(version__startswith='ansible-runner-')])
return sum([inst.capacity for inst in self.instances.all()])
@property
def jobs_running(self):