VNFs with only VLDs compatibility - part2 74/6874/2
authorgcalvino <guillermo.calvinosanchez@altran.com>
Tue, 13 Nov 2018 17:47:28 +0000 (18:47 +0100)
committergcalvino <guillermo.calvinosanchez@altran.com>
Wed, 14 Nov 2018 08:44:54 +0000 (09:44 +0100)
Change-Id: Id89dd94af4856c5d6d10c59ecfdef764e3308d2b
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
osm_ro/nfvo.py

index cfd2b43..f8aa47e 100644 (file)
@@ -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