fix bug for vnfm missed table vminst field vmid value after creating vm sucessfully 10/93010/1
authorhongyuzhao <zhao.hongyu@zte.com.cn>
Thu, 8 Aug 2019 06:39:50 +0000 (14:39 +0800)
committerhongyuzhao <zhao.hongyu@zte.com.cn>
Thu, 8 Aug 2019 07:24:11 +0000 (15:24 +0800)
Change-Id: Id37f62062791859aebfff709b9e686e1e87cf992
Issue-ID: VFC-1481
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
lcm/lcm/pub/vimapi/adaptor.py

index 62fd39f..6cda0af 100644 (file)
@@ -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"):