def get_all_masters():
    """ Returns the json object that represents each of the masters.
    """
    masters = []
    for master in __master_zk_nodes_keys():
        master_zk_str = get_zk_node_data(master)['str']
        masters.append(json.loads(master_zk_str))

    return masters
def get_all_masters ( ) : masters = [ ] for master in __master_zk_nodes_keys ( ) : master_zk_str = get_zk_node_data ( master ) [ 'str' ] masters . append ( json . loads ( master_zk_str ) ) return masters
Returns the json object that represents each of the masters.