#NEWLINE# def is_active_slave( master , node ) : #NEWLINE# #INDENT# '\n    Check if a node is registered as an active slave on a Mesos master\n    ' #NEWLINE# slaves = _get_slaves ( master ) #NEWLINE# for slave in slaves : #NEWLINE# #INDENT# if ( slave [ 'hostname' ] == node ) : #NEWLINE# #INDENT# return slave [ 'active' ] #NEWLINE# #UNINDENT# #UNINDENT# return False