fix(cli): look up a deployment by exact name instead of a paged search

This commit is contained in:
Hugo Durand
2026-09-22 15:25:28 -04:00
parent beb3e9c1f1
commit 904478cbec
5 changed files with 93 additions and 13 deletions
+2 -2
View File
@@ -491,8 +491,8 @@ def _source_of(resource: object) -> str | None:
def find_deployment_by_name(
client: HostBackendClient, name: str
) -> ExistingDeployment | None:
for resource in client.list_deployments(name_contains=name):
if resource.get("name") == name and resource.get("id"):
for resource in client.list_deployments(name=name):
if resource.get("id"):
return ExistingDeployment(str(resource["id"]), _source_of(resource))
return None