From 8ccc938635ceb5079c63a5cb20cf804a9954a8b4 Mon Sep 17 00:00:00 2001 From: hongyuzhao Date: Thu, 8 Aug 2019 14:39:50 +0800 Subject: [PATCH] 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 --- lcm/lcm/pub/vimapi/adaptor.py | 2 ++ 1 file changed, 2 insertions(+) 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"): -- 2.16.6