Allow value 'no' for replica-certify-all attr in abort-clean-ruv subcommand

--force option set replica-certify-all to 'no' during abort-clean-ruv
subcommand

https://fedorahosted.org/freeipa/ticket/4988

Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Martin Basti
2015-07-16 16:26:55 +02:00
committed by Petr Vobornik
parent 75fde43491
commit 82aaa1e6d0
3 changed files with 4 additions and 3 deletions

View File

@@ -1451,7 +1451,7 @@ class ReplicationManager(object):
wait_for_task(self.conn, dn)
def abortcleanallruv(self, replicaId):
def abortcleanallruv(self, replicaId, force=False):
"""
Create a task to abort a CLEANALLRUV operation.
"""
@@ -1465,6 +1465,7 @@ class ReplicationManager(object):
'replica-id': [replicaId],
'objectclass': ['top', 'extensibleObject'],
'cn': ['abort %d' % replicaId],
'replica-certify-all': ['no'] if force else ['yes'],
}
)
try: