X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=nfvo.py;h=2998c38a959664a9b1f0bfbb15bca348c1c700fe;hb=1cc0d44cfcac6dd5086d97397de072101a1f6611;hp=e8032064266026f8affce1445b97191e6375512d;hpb=bb6a1eddea58a499539b13859b0cff1964fd554e;p=osm%2FRO.git 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")