From: hongyuzhao Date: Thu, 8 Aug 2019 06:39:50 +0000 (+0800) Subject: fix bug for vnfm missed table vminst field vmid value after creating vm sucessfully X-Git-Tag: 1.3.4~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vfc%2Fgvnfm%2Fvnflcm.git;a=commitdiff_plain;h=8ccc938635ceb5079c63a5cb20cf804a9954a8b4 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 --- 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"):