From: Zack Cerza Date: Thu, 11 Dec 2025 02:19:25 +0000 (-0700) Subject: fixup! lock.ops.unlock_one_safe: Invert run-match logic X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1f03583c5eb26781105f0809c6f3635d27fc585a;p=teuthology.git fixup! lock.ops.unlock_one_safe: Invert run-match logic --- 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: