#NEWLINE# def _create_service( self , host = 'fakehost' , compute = None ) : #NEWLINE# #INDENT# if compute : #NEWLINE# #INDENT# compute = [ compute ] #NEWLINE# #UNINDENT# service = { #NEWLINE# #INDENT# 'id' : 1 , #NEWLINE# 'host' : host , #NEWLINE# 'binary' : 'nova-compute' , #NEWLINE# 'topic' : 'compute' , #NEWLINE# 'compute_node' : compute , #NEWLINE# 'report_count' : 0 , #NEWLINE# 'disabled' : False , #NEWLINE# 'disabled_reason' : None , #NEWLINE# 'created_at' : None , #NEWLINE# 'updated_at' : None , #NEWLINE# 'deleted_at' : None , #NEWLINE# 'deleted' : False , #NEWLINE# 'last_seen_up' : None , #NEWLINE# 'forced_down' : False , #NEWLINE# 'version' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# return self