From: Kyr Shatskyy Date: Tue, 6 Aug 2024 22:59:53 +0000 (+0200) Subject: lock/query: make use of tries for list_locks() X-Git-Tag: 1.2.0^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84652ff038b619876d85aeb5638e53570c10ca6b;p=teuthology.git 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 --- 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():