def update(cluster, name, configuration): codec = TextCodec(ReplicationSetConfiguration) configuration = codec.decode(configuration.read()) # TODO: Support forced removal again. with cluster: return administration.update_set(cluster, name, configuration)
def create(cluster, name, configuration): codec = TextCodec(ReplicationSetConfiguration) configuration = codec.decode(configuration.read()) with cluster: return administration.create_set(cluster, name, configuration)