#NEWLINE# def update_cell( self , request , data , volume_type_id , cell_name , new_cell_value ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# vol_type_obj = data #NEWLINE# setattr ( vol_type_obj , new_cell_value , new_cell_value ) #NEWLINE# name_value = getattr ( vol_type_obj , 'name' , None ) #NEWLINE# desc_value = getattr ( vol_type_obj , 'description' , None ) #NEWLINE# cinder . volume_type_update ( request , volume_type_id , name = name_value , description = desc_value ) #NEWLINE# #UNINDENT# except Exception as ex : #NEWLINE# #INDENT# if ( ex . code and ( ex . code == 409 ) ) : #NEWLINE# #INDENT# error_message = _ ( 'New name conflicts with another volume type.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# error_message = _ ( 'Unable to update the volume type.' ) #NEWLINE# #UNINDENT# exceptions . handle ( request , error_message ) #NEWLINE# return False #NEWLINE# #UNINDENT# return True