topology: fix swapped topologysegment-reinitialize behavior
setting "nsds5BeginReplicaRefresh;left" to "start" reinintializes the right node and not the left node. This patch fixes API to match the behavior. part of: https://fedorahosted.org/freeipa/ticket/4302 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
1 parent
6b153ba876
commit
bb6c0b9c63
1 file changed
+4
-2
@@ -294,9 +294,11 @@ class topologysegment_reinitialize(LDAPQuery):
|
||||
msg = _('Stopping of replication refresh for segment: "'
|
||||
'%(pkey)s" requested.')
|
||||
|
||||
if left:
|
||||
entry['nsds5beginreplicarefresh;left'] = [action]
|
||||
# left and right are swapped because internally it's a push not
|
||||
# pull operation
|
||||
if right:
|
||||
entry['nsds5beginreplicarefresh;left'] = [action]
|
||||
if left:
|
||||
entry['nsds5beginreplicarefresh;right'] = [action]
|
||||
|
||||
self.obj.backend.update_entry(entry)
|
||||
|
||||
Reference in new issue
Block a user