def create_base_config_file(index, server_configs): file_name = get_config_file_name(index) logging.info("Saving the full config: {} to {}".format( server_configs, file_name)) save_membership(file_name, server_configs)
def get_live_config(): for i, process in enumerate(servers): if process is not None: return load_membership(get_config_file_name(i))
def create_base_config_file(index, server_configs): file_name = get_config_file_name(index) logging.info("Saving the full config: {} to {}".format(server_configs, file_name)) save_membership(file_name, server_configs)