fix bug for delete vserver in aai 23/92323/1
authorhongyuzhao <zhao.hongyu@zte.com.cn>
Wed, 31 Jul 2019 02:02:15 +0000 (10:02 +0800)
committerhongyuzhao <zhao.hongyu@zte.com.cn>
Wed, 31 Jul 2019 02:05:13 +0000 (10:05 +0800)
Change-Id: Ia80c9cf0b988fcf80c21358940fb813d9e352707
Issue-ID: VFC-1462
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
lcm/ns_vnfs/biz/terminate_nfs.py

index 86d608e..8f9f5ec 100644 (file)
@@ -174,7 +174,7 @@ class TerminateVnfs(threading.Thread):
                 vim_id = vm_inst_info.vimid
                 cloud_owner, cloud_region_id = split_vim_to_owner_region(vim_id)
                 # query vim_info from aai, get tenant
-                vim_info = get_vim_by_id(vim_id)
+                vim_info = get_vim_by_id({"cloud_owner": cloud_owner, 'cloud_regionid': cloud_region_id})
                 tenant_id = vim_info["tenantId"]
 
                 # query vserver instance in aai, get resource_version