#NEWLINE# def host_passes( self , host_state , spec_obj ) : #NEWLINE# #INDENT# 'Returns True for only active compute nodes.' #NEWLINE# service = host_state . service #NEWLINE# if service [ 'disabled' ] : #NEWLINE# #INDENT# LOG . debug ( '%(host_state)s is disabled, reason: %(reason)s' , { #NEWLINE# #INDENT# 'host_state' : host_state , #NEWLINE# 'reason' : service . get ( 'disabled_reason' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not self . servicegroup_api . service_is_up ( spec_obj ) ) : #NEWLINE# #INDENT# LOG . warning ( _LW ( '%(host_state)s has not been heard from in a while' ) , { #NEWLINE# #INDENT# 'host_state' : host_state , #NEWLINE# #UNINDENT# } ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# return True