From 04f29113cb79e64c61c848216094e78f2cf29e6d Mon Sep 17 00:00:00 2001 From: Adam Israel Date: Wed, 20 Sep 2017 21:10:30 -0400 Subject: [PATCH] Fix bug 343 This commit addresses the issue raised by bug 343 where datacenter's of type 'aws' couldn't be detached. Signed-off-by: Adam Israel --- osm_ro/nfvo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index fa87205f..8b6a2e13 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -2302,7 +2302,7 @@ def create_instance(mydb, tenant_id, instance_dict): db_instance_vms = [] db_instance_interfaces = [] #myvim.new_vminstance(self,vimURI,tenant_id,name,description,image_id,flavor_id,net_dict) - sce_vnf_list = sorted(scenarioDict['vnfs'], key=lambda k: k['name']) + sce_vnf_list = sorted(scenarioDict['vnfs'], key=lambda k: k['name']) #for sce_vnf in scenarioDict['vnfs']: for sce_vnf in sce_vnf_list: vnf_availability_zones = [] @@ -3158,7 +3158,7 @@ def edit_datacenter_to_tenant(mydb, nfvo_tenant, datacenter_id, vim_tenant_id=No def deassociate_datacenter_to_tenant(mydb, tenant_id, datacenter, vim_tenant_id=None): #get datacenter info - datacenter_id, myvim = get_datacenter_by_name_uuid(mydb, None, datacenter) + datacenter_id, myvim = get_datacenter_by_name_uuid(mydb, tenant_id, datacenter) #get nfvo_tenant info if not tenant_id or tenant_id=="any": -- 2.17.1