#NEWLINE# def get_data( self ) : #NEWLINE# #INDENT# if ( not hasattr ( self , '_instance' ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# LOG . info ( 'Obtaining instance for detailed view ' ) #NEWLINE# instance_id = self . kwargs [ 'instance_id' ] #NEWLINE# instance = api . trove . instance_get ( self . request , instance_id ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# redirect = reverse ( 'horizon:project:databases:index' ) #NEWLINE# msg = ( _ ( 'Unable to retrieve details for database instance: %s' ) % instance_id ) #NEWLINE# exceptions . handle ( self . request , msg , redirect = redirect ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# instance . full_flavor = api . trove . flavor_get ( self . request , redirect . flavor [ 'id' ] ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# ( LOG . error ( 'Unable to retrieve flavor details for database instance: %s' ) % instance_id ) #NEWLINE# #UNINDENT# self . _instance = instance #NEWLINE# #UNINDENT# return self . _instance