Skip to content
Snippets Groups Projects
Commit 656818e9 authored by garciadeblas's avatar garciadeblas
Browse files

Update common_check_list to add optional messages in case of failed check


Change-Id: Iaf17461acaf10ce333db038cb840c14607134af8
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 41a600e6
No related branches found
No related tags found
No related merge requests found
Pipeline #18056 passed with warnings with stage
in 5 minutes and 19 seconds
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment