#NEWLINE# @ memoized . memoized_method #NEWLINE# def get_data( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# volume_id = self . kwargs [ 'volume_id' ] #NEWLINE# volume = cinder . volume_get ( self . request , volume_id ) #NEWLINE# for att in volume . attachments : #NEWLINE# #INDENT# att [ 'instance' ] = api . nova . server_get ( self . request , att [ 'server_id' ] ) #NEWLINE# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# redirect = self . get_redirect_url ( ) #NEWLINE# exceptions . handle ( self . request , _ ( 'Unable to retrieve volume details.' ) , redirect = redirect ) #NEWLINE# #UNINDENT# return volume