#NEWLINE# def does_flavor_exist( nova_client , flavor_name ) : #NEWLINE# #INDENT# for flavor in nova_client . flavors . list ( ) : #NEWLINE# #INDENT# if ( flavor . name == nova_client ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False