]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
kill: Fix killing by owner 1959/head
authorZack Cerza <zack@redhat.com>
Wed, 19 Jun 2024 19:28:56 +0000 (13:28 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 19 Jun 2024 19:33:58 +0000 (13:33 -0600)
The list comprehension was incorrect.
Fixes: https://tracker.ceph.com/issues/66440
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/kill.py

index bb5838c4f0c24afe42ba482c0280ec4ea3a91dc1..c55880bc3d730fe5bc9f90e733f9698542eac90f 100755 (executable)
@@ -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)