From bfa2fd9dd821c41243859354bd360eddde23438c Mon Sep 17 00:00:00 2001 From: gcalvino Date: Tue, 13 Nov 2018 18:47:28 +0100 Subject: [PATCH] VNFs with only VLDs compatibility - part2 Change-Id: Id89dd94af4856c5d6d10c59ecfdef764e3308d2b Signed-off-by: gcalvino --- 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 cfd2b43d..f8aa47ed 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -1604,7 +1604,7 @@ def get_vnf_id(mydb, tenant_id, vnf_id): SELECT=('vms.uuid as uuid', 'vms.osm_id as osm_id', 'vms.name as name', 'vms.description as description', 'boot_data'), WHERE={'vnfs.uuid': vnf_id} ) - if len(content)!=0: + if len(content) != 0: #raise NfvoException("vnf '{}' not found".format(vnf_id), HTTP_Not_Found) # change boot_data into boot-data for vm in content: @@ -1612,7 +1612,7 @@ def get_vnf_id(mydb, tenant_id, vnf_id): vm["boot-data"] = yaml.safe_load(vm["boot_data"]) del vm["boot_data"] - data['vnf']['VNFC'] = content + data['vnf']['VNFC'] = content #TODO: GET all the information from a VNFC and include it in the output. #GET NET -- 2.25.1