Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
061eb01
)
Merge "Fix the error of contextArray is null"
author
maopeng zhang
<zhang.maopeng1@zte.com.cn>
Mon, 13 Jan 2020 08:53:10 +0000
(08:53 +0000)
committer
Gerrit Code Review
<gerrit@onap.org>
Mon, 13 Jan 2020 08:53:10 +0000
(08:53 +0000)
lcm/lcm/pub/vimapi/adaptor.py
patch
|
blob
|
history
diff --git
a/lcm/lcm/pub/vimapi/adaptor.py
b/lcm/lcm/pub/vimapi/adaptor.py
index
6cda0af
..
b79aaac
100644
(file)
--- a/
lcm/lcm/pub/vimapi/adaptor.py
+++ b/
lcm/lcm/pub/vimapi/adaptor.py
@@
-390,7
+390,7
@@
def create_vm(vim_cache, res_cache, data, vm, do_notify, res_type):
param["nicArray"].append({
"portId": get_res_id(res_cache, RES_PORT, cp_id)
})
- param["contextArray"] = ignore_case_get(vm["properties"], "inject_files")
+ param["contextArray"] = ignore_case_get(vm["properties"], "inject_files"
, []
)
logger.debug("contextArray:%s", param["contextArray"])
for vol_data in ignore_case_get(vm, "volume_storages"):
vol_id = vol_data["volume_storage_id"]