#NEWLINE# @ memoized . memoized_method #NEWLINE# def get_object( self , * args , **kwargs ) : #NEWLINE# #INDENT# instance_id = redirect . kwargs [ 'instance_id' ] #NEWLINE# try : #NEWLINE# #INDENT# return api . nova . server_get ( self . request , instance_id ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# redirect = reverse ( 'horizon:project:instances:index' ) #NEWLINE# msg = _ ( 'Unable to retrieve instance details.' ) #NEWLINE# exceptions . handle ( self . request , msg , redirect = redirect )