From 1f03583c5eb26781105f0809c6f3635d27fc585a Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 10 Dec 2025 19:19:25 -0700 Subject: [PATCH] fixup! lock.ops.unlock_one_safe: Invert run-match logic --- teuthology/lock/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/lock/ops.py b/teuthology/lock/ops.py index 1db9daad1..787eebb36 100644 --- a/teuthology/lock/ops.py +++ b/teuthology/lock/ops.py @@ -200,7 +200,7 @@ def unlock_one_safe(name: str, owner: str, run_name: str = "", job_id: str = "") if job_id and not maybe_job.endswith(f"{run_name}/{job_id}"): log.info("Not unlocking {name} since it is running {maybe_job}, not {run_name}/{job_id}") return False - elif not not job_id and maybe_job.endswith(run_name): + elif not job_id and not maybe_job.endswith(run_name): log.info(f"Not unlocking {name} since it is running {maybe_job}, not {run_name}") return False else: -- 2.47.3