projects
/
osm
/
LCM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41a600e
)
Update common_check_list to add optional messages in case of failed check
91/14891/1
author
garciadeblas
<gerardo.garciadeblas@telefonica.com>
Tue, 21 Jan 2025 17:48:58 +0000
(18:48 +0100)
committer
garciadeblas
<gerardo.garciadeblas@telefonica.com>
Tue, 21 Jan 2025 17:48:58 +0000
(18:48 +0100)
Change-Id: Iaf17461acaf10ce333db038cb840c14607134af8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_lcm/k8s.py
patch
|
blob
|
history
diff --git
a/osm_lcm/k8s.py
b/osm_lcm/k8s.py
index
0d01369
..
78cbdfd
100644
(file)
--- 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(