#NEWLINE# def get_object( self ) : #NEWLINE# #INDENT# if ( not hasattr ( self , '_object' ) ) : #NEWLINE# #INDENT# vol_id = self . kwargs [ 'volume_id' ] #NEWLINE# try : #NEWLINE# #INDENT# self . _object = cinder . volume_get ( self . request , vol_id ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# msg = _ ( 'Unable to retrieve volume.' ) #NEWLINE# url = reverse ( 'horizon:project:volumes:index' ) #NEWLINE# exceptions . handle ( self . request , msg , redirect = url ) #NEWLINE# #UNINDENT# #UNINDENT# return self . _object