projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bug 2022: RO updating VIM details with null info when VM is in error state
[osm/RO.git]
/
NG-RO
/
osm_ng_ro
/
ns.py
diff --git
a/NG-RO/osm_ng_ro/ns.py
b/NG-RO/osm_ng_ro/ns.py
index
3bbb207
..
c979189
100644
(file)
--- a/
NG-RO/osm_ng_ro/ns.py
+++ b/
NG-RO/osm_ng_ro/ns.py
@@
-508,6
+508,7
@@
class Ns(object):
"vim_name": None,
"vim_status": None,
"vim_details": None,
"vim_name": None,
"vim_status": None,
"vim_details": None,
+ "vim_message": None,
"refresh_at": None,
},
"modified_at": now,
"refresh_at": None,
},
"modified_at": now,
@@
-2280,7
+2281,7
@@
class Ns(object):
error_text = "Error at {} {}: {}".format(
task["action"].lower(),
task["item"],
error_text = "Error at {} {}: {}".format(
task["action"].lower(),
task["item"],
- ro_task["vim_info"].get("vim_
details
") or "unknown",
+ ro_task["vim_info"].get("vim_
message
") or "unknown",
)
details.append(error_text)
elif task["status"] in ("SCHEDULED", "BUILD"):
)
details.append(error_text)
elif task["status"] in ("SCHEDULED", "BUILD"):