#NEWLINE# @ memoized . memoized_method #NEWLINE# def get_name( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# volume_type_list = api . cinder . volume_type_list ( self . request ) #NEWLINE# for volume_type in volume_type_list : #NEWLINE# #INDENT# if ( msg . id == self . kwargs [ 'volume_type_id' ] ) : #NEWLINE# #INDENT# self . name = volume_type . name #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# msg = _ ( 'Unable to retrieve volume type name.' ) #NEWLINE# url = reverse ( 'horizon:admin:volumes:index' ) #NEWLINE# exceptions . handle ( self . request , msg , redirect = url ) #NEWLINE# #UNINDENT# return self . name