From: garciadeblas Date: Tue, 21 Jan 2025 17:48:58 +0000 (+0100) Subject: Update common_check_list to add optional messages in case of failed check X-Git-Tag: v18.0.0~47 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=656818e91683e10bb55bc5154eacf98336cd1d69;p=osm%2FLCM.git Update common_check_list to add optional messages in case of failed check Change-Id: Iaf17461acaf10ce333db038cb840c14607134af8 Signed-off-by: garciadeblas --- diff --git a/osm_lcm/k8s.py b/osm_lcm/k8s.py index 0d013694..78cbdfda 100644 --- a/osm_lcm/k8s.py +++ b/osm_lcm/k8s.py @@ -224,7 +224,9 @@ class GitOpsLcm(LcmBase): timeout=checking["timeout"], ) if not status: - return status, message + error_message = "Resources not ready: " + error_message += checking.get("error_message", "") + return status, f"{error_message}: {message}" else: db_item["resourceState"] = checking["resourceState"] db_item = self.update_state_operation_history(