From b19efdc02490090af87d3d734baaafa45d03593f Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Wed, 7 Aug 2024 00:59:53 +0200 Subject: [PATCH] lock/query: make use of tries for list_locks() The list_locks has been updated with new argument 'tries' in PR#1816, but by unfortunate mistake hasn't been used yet. Fixes: 55886eac960cfc6f311fb4c9812311c420761793 Signed-off-by: Kyr Shatskyy --- teuthology/lock/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/lock/query.py b/teuthology/lock/query.py index 731f8a1b5..162f38572 100644 --- a/teuthology/lock/query.py +++ b/teuthology/lock/query.py @@ -68,7 +68,7 @@ def list_locks(keyed_by_name=False, tries=10, **kwargs): with safe_while( sleep=1, increment=0.5, - tries=-1, + tries=tries, action='list_locks' ) as proceed: while proceed():