From: garciadeblas Date: Tue, 22 Oct 2024 10:47:05 +0000 (+0200) Subject: Log iteration count in readiness_loop X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F14666%2F1;p=osm%2FLCM.git Log iteration count in readiness_loop Change-Id: Ia39598d7a889fbfc07ad27f6c1f50b1140aab651 Signed-off-by: garciadeblas --- diff --git a/osm_lcm/odu_libs/workflows.py b/osm_lcm/odu_libs/workflows.py index f9e556c..86cf743 100644 --- a/osm_lcm/odu_libs/workflows.py +++ b/osm_lcm/odu_libs/workflows.py @@ -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(