From 19c8f9d54d1325965deac201a5e2e63aac10cf64 Mon Sep 17 00:00:00 2001 From: Simon Pichugin Date: Fri, 10 Jan 2025 15:02:09 -0800 Subject: [PATCH] Update replica.py --- src/lib389/lib389/replica.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib389/lib389/replica.py b/src/lib389/lib389/replica.py index 469247bfb..b9341032c 100644 --- a/src/lib389/lib389/replica.py +++ b/src/lib389/lib389/replica.py @@ -2013,7 +2013,7 @@ def _create_service_group(self, from_instance): return repl_group else: try: - repl_group = groups.get('replication_managers') + repl_group = groups.get(dn=f'cn=replication_managers,{self._suffix}') return repl_group except ldap.NO_SUCH_OBJECT: self._log.warning("{} doesn't have cn=replication_managers,{} entry \ @@ -2537,8 +2537,8 @@ def wait_for_replication(self, from_instance, to_instance, timeout=60): # Touch something then wait_for_replication. from_groups = Groups(from_instance, basedn=self._suffix, rdn=None) to_groups = Groups(to_instance, basedn=self._suffix, rdn=None) - from_group = from_groups.get('replication_managers') - to_group = to_groups.get('replication_managers') + from_group = from_groups.get(dn=f'cn=replication_managers,{self._suffix}') + to_group = to_groups.get(dn=f'cn=replication_managers,{self._suffix}') change = str(uuid.uuid4())