#NEWLINE# def flavor_create( request , name , memory , vcpu , disk , flavorid = 'auto' , ephemeral = 0 , swap = 0 , metadata = None , is_public = True ) : #NEWLINE# #INDENT# flavor = novaclient ( request ) . flavors . create ( name , flavorid , vcpu , disk , flavorid = flavorid , ephemeral = ephemeral , swap = swap , is_public = is_public ) #NEWLINE# if metadata : #NEWLINE# #INDENT# flavor_extra_set ( request , flavor . id , metadata ) #NEWLINE# #UNINDENT# return flavor