Change-Id: I98283117f99e8d9e3d795961654b603c644d9d48
Signed-off-by: lloretgalleg <illoret@indra.es>
#delelte at VIM
c = mydb.get_rows(FROM='datacenters_flavors', WHERE={'flavor_id': flavor})
for flavor_vim in c:
- if not flavor_vim['created']: # skip this flavor because not created by openmano
+ # skip this flavor because not created by openmano
+ # field created in the database is a string, must do a string comparison
+ if flavor_vim['created'] != "true":
continue
# look for vim
myvim = None