From ea51f6990cf7e1dbc89ae3ffb8c8cd9f943e1c21 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 28 Jan 2021 13:13:20 +0100 Subject: [PATCH] mgr/rook: Fix possibly infinite loop in _execute_blight_job Signed-off-by: Sebastian Wagner --- src/pybind/mgr/rook/rook_cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/rook/rook_cluster.py b/src/pybind/mgr/rook/rook_cluster.py index c842b3579cada..d40613090b5a6 100644 --- a/src/pybind/mgr/rook/rook_cluster.py +++ b/src/pybind/mgr/rook/rook_cluster.py @@ -725,7 +725,7 @@ class RookCluster(object): deleted = not api_response.items if retries > 5: sleep(0.1) - ++retries + retries += 1 if retries == 10 and not deleted: raise orchestrator.OrchestratorError( "Light <{}> in <{}:{}> cannot be executed. Cannot delete previous job <{}>".format( -- 2.39.5