]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
lock/query: make use of tries for list_locks() 1995/head
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Tue, 6 Aug 2024 22:59:53 +0000 (00:59 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Tue, 6 Aug 2024 23:50:21 +0000 (01:50 +0200)
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 <kyrylo.shatskyy@clyso.com>
teuthology/lock/query.py

index 731f8a1b579985929ec04903f83c2fd43e3060df..162f385726c96a3c9d74794b27316257a44bf84c 100644 (file)
@@ -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():