Code Review
/
vfc
/
gvnfm
/
vnflcm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
fix bug for vnfm missed table vminst field vmid value after creating vm sucessfully
[vfc/gvnfm/vnflcm.git]
/
lcm
/
lcm
/
pub
/
vimapi
/
adaptor.py
diff --git
a/lcm/lcm/pub/vimapi/adaptor.py
b/lcm/lcm/pub/vimapi/adaptor.py
index
62fd39f
..
6cda0af
100644
(file)
--- a/
lcm/lcm/pub/vimapi/adaptor.py
+++ b/
lcm/lcm/pub/vimapi/adaptor.py
@@
-407,6
+407,8
@@
def create_vm(vim_cache, res_cache, data, vm, do_notify, res_type):
ret = api.create_vm(vim_id, tenant_id, param)
ret["ports"] = [nic.get("portId") for nic in param["nicArray"]]
+ ret["vimId"] = vim_id
+ ret["tenantId"] = tenant_id
do_notify(res_type, ret)
vm_id = ret["id"]
if ignore_case_get(ret, "name"):