def is_active_slave(master, node):
    slaves = _get_slaves(master)
    for slave in slaves:
        if slave['hostname'] == node:
            return slave['active']

    return False
Check if a node is registered as an active slave on a Mesos master
dataset/ETHPy150Open dropbox/changes/changes/lib/mesos_lib.py/is_active_slave