X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=nfvo.py;h=9f360ce14788ca69978e66120c1a03c0d2ea0282;hb=8ed3c73ef2ea968a5530d0128a7b3ed819fb8606;hp=005e065bdff448bab752538fc3129cf4ab1e3f2b;hpb=5e91eb8987aea037647103633909bf894bbed3c5;p=osm%2FRO.git diff --git a/nfvo.py b/nfvo.py index 005e065b..9f360ce1 100644 --- a/nfvo.py +++ b/nfvo.py @@ -354,7 +354,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")