Log iteration count in readiness_loop 66/14666/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 22 Oct 2024 10:47:05 +0000 (12:47 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 22 Oct 2024 10:47:18 +0000 (12:47 +0200)
Change-Id: Ia39598d7a889fbfc07ad27f6c1f50b1140aab651
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_lcm/odu_libs/workflows.py

index f9e556c..86cf743 100644 (file)
@@ -86,7 +86,9 @@ async def readiness_loop(self, item, name, namespace, flag, timeout):
             conditions = generic_object.get("status", {}).get("conditions", [])
         else:
             conditions = []
-        self.logger.info(f"{item} status conditions: {conditions}")
+        self.logger.info(
+            f"Iteration {counter}/{max_iterations}. {item} status conditions: {conditions}"
+        )
         result = next((item for item in conditions if item["type"] == flag), {})
         if result.get("status", "False") == "True":
             self.logger.info(