summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongyuzhao <zhao.hongyu@zte.com.cn>2019-08-08 14:39:50 +0800
committerhongyuzhao <zhao.hongyu@zte.com.cn>2019-08-08 15:24:11 +0800
commit8ccc938635ceb5079c63a5cb20cf804a9954a8b4 (patch)
tree459e42ba85ae2513ce327e72d97d9a07f3f7a535
parent111cf05157a3fef21f6fe35e39774ed5c4e26932 (diff)
fix bug for vnfm missed table vminst field vmid value after creating vm sucessfully
Change-Id: Id37f62062791859aebfff709b9e686e1e87cf992 Issue-ID: VFC-1481 Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
-rw-r--r--lcm/lcm/pub/vimapi/adaptor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py
index 62fd39fe..6cda0af0 100644
--- 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"):