From: Zack Cerza Date: Wed, 19 Jun 2024 19:28:56 +0000 (-0600) Subject: kill: Fix killing by owner X-Git-Tag: 1.2.0~31^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1959%2Fhead;p=teuthology.git kill: Fix killing by owner The list comprehension was incorrect. Fixes: https://tracker.ceph.com/issues/66440 Signed-off-by: Zack Cerza --- diff --git a/teuthology/kill.py b/teuthology/kill.py index bb5838c4f..c55880bc3 100755 --- a/teuthology/kill.py +++ b/teuthology/kill.py @@ -74,7 +74,7 @@ def kill_run(run_name, archive_base=None, owner=None, machine_type=None, return if owner is not None: targets = find_targets(run_name) - names = [t["name"] for t in targets] + names = list(targets.keys()) lock_ops.unlock_safe(names, owner, run_name) report.try_mark_run_dead(run_name)