From: gcalvino Date: Tue, 13 Nov 2018 17:47:28 +0000 (+0100) Subject: VNFs with only VLDs compatibility - part2 X-Git-Tag: v5.0.0~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=bfa2fd9dd821c41243859354bd360eddde23438c;p=osm%2FRO.git VNFs with only VLDs compatibility - part2 Change-Id: Id89dd94af4856c5d6d10c59ecfdef764e3308d2b Signed-off-by: gcalvino --- 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