From: garciadeblas Date: Tue, 4 Oct 2016 07:09:58 +0000 (+0200) Subject: Minor bug fixed in create_or_use_flavor when it contains a disk image X-Git-Tag: v1.0.0~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F483%2F2;p=osm%2FRO.git Minor bug fixed in create_or_use_flavor when it contains a disk image Change-Id: I43dd1b4e822330908a46c8adf93ce26934000ad5 Signed-off-by: garciadeblas --- diff --git a/nfvo.py b/nfvo.py index e8032064..2998c38a 100644 --- a/nfvo.py +++ b/nfvo.py @@ -344,7 +344,7 @@ def create_or_use_flavor(mydb, vims, flavor_dict, rollback_list, only_create_at_ if 'extended' in flavor_dict and flavor_dict['extended']!=None: dev_nb=0 for device in flavor_dict['extended'].get('devices',[]): - if "image" not in device or "image name" not in device: + if "image" not in device and "image name" not in device: continue image_dict={} image_dict['name']=device.get('image name',flavor_dict['name']+str(dev_nb)+"-img")