]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
contextutil: sleep between tries in safe_while again
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Tue, 6 Aug 2024 22:42:32 +0000 (00:42 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Tue, 6 Aug 2024 23:49:20 +0000 (01:49 +0200)
commit7f1968cfbd039af68c899aafe32862633902b251
tree6f7229285dc5ac0e15765cb3276d43389be41429
parentcf24c2c3d05f582bf5f29ba79918772e60c96f67
contextutil: sleep between tries in safe_while again

This patch fixes an issue introduced within PR #1816,
that when tries are < 0 (e.g. -1) there is no sleep
occurred between tries.

It also fixes error message, so we repot correct
number of tries we've done now.

Fixes: ee43f87cfe88a8155566b662750d663c1d8742ff
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/contextutil.py