Update common_check_list to add optional messages in case of failed check
Change-Id: Iaf17461acaf10ce333db038cb840c14607134af8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_lcm/k8s.py b/osm_lcm/k8s.py
index 0d01369..78cbdfd 100644
--- a/osm_lcm/k8s.py
+++ b/osm_lcm/k8s.py
@@ -224,7 +224,9 @@
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(