#NEWLINE# def get_info( self , instance ) : #NEWLINE# #INDENT# if ( instance . uuid not in self . instances ) : #NEWLINE# #INDENT# raise exception . InstanceNotFound ( instance_id = i . uuid ) #NEWLINE# #UNINDENT# i = self . instances [ instance . uuid ] #NEWLINE# return hardware . InstanceInfo ( state = i . state , max_mem_kb = 0 , mem_kb = 0 , num_cpu = 2 , cpu_time_ns = 0 )