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())