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():