#NEWLINE# def get_context_data( self , request ) : #NEWLINE# #INDENT# instance = self . tab_group . kwargs [ 'instance' ] #NEWLINE# try : #NEWLINE# #INDENT# data = api . nova . server_console_output ( request , instance . id , tail_length = 35 ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# data = ( _ ( 'Unable to get log for instance "%s".' ) % instance . id ) #NEWLINE# exceptions . handle ( request , ignore = True ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'instance' : instance , #NEWLINE# 'console_log' : data , #NEWLINE# #UNINDENT# }