#NEWLINE# def is_up( self , service_ref ) : #NEWLINE# #INDENT# 'Moved from nova.utils\n        Check whether a service is up based on last heartbeat.\n        ' #NEWLINE# key = ( '%(topic)s:%(host)s' % service_ref ) #NEWLINE# is_up = ( self . mc . get ( str ( key ) ) is not None ) #NEWLINE# if ( not is_up ) : #NEWLINE# #INDENT# LOG . debug ( ( 'Seems service %s is down' % key ) ) #NEWLINE# #UNINDENT# return service_ref