Skip to content

Commit

Permalink
PTFE-675: gcp backend labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Abubakarr99 committed Aug 14, 2023
1 parent ec7e188 commit 4d31255
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions runner_manager/backend/gcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,7 @@ def list(self) -> List[Runner]:
)
for instance in instances:
labels = instance.labels or {}
if (
"runner-manager" in labels
and labels["runner-manager"] == self.runner_manager
):
if self.manager and "runner-manager" in labels:
runner = Runner(
name=instance.name,
instance_id=instance.name,
Expand Down

0 comments on commit 4d31255

Please sign in to comment.