summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2015-06-12 15:59:48 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-06-15 09:41:48 +0200
commitbb6c0b9c634f26ae5d16079b3a66841ac0ce60cc (patch)
tree034698a46a6d318ea5f092bf016cb286f2656e80 /ipalib
parent6b153ba876edf1ed9249ed29420a4af2b2e1830d (diff)
downloadfreeipa-bb6c0b9c634f26ae5d16079b3a66841ac0ce60cc.tar.gz
freeipa-bb6c0b9c634f26ae5d16079b3a66841ac0ce60cc.tar.xz
freeipa-bb6c0b9c634f26ae5d16079b3a66841ac0ce60cc.zip
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>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/topology.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py
index be2ac0bd2..494d3bb0a 100644
--- a/ipalib/plugins/topology.py
+++ b/ipalib/plugins/topology.py
@@ -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)