Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
def create(cluster, name, configuration):
    codec = TextCodec(ReplicationSetConfiguration)
    configuration = codec.decode(configuration.read())

    with cluster:
        return administration.create_set(cluster, name, configuration)
Exemple #4
0
def create(cluster, name, configuration):
    codec = TextCodec(ReplicationSetConfiguration)
    configuration = codec.decode(configuration.read())

    with cluster:
        return administration.create_set(cluster, name, configuration)