From efd8b03ccfc5ba25c383eacafa948aa0aa5feddf Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 15 Dec 2010 14:55:30 -0500 Subject: Make ipa-replica-manage list return all known masters if ipa-replica-manage list is given a master name as argument then the tool has the old behavior of listing that specific master replication agreements Fixes: https://fedorahosted.org/freeipa/ticket/625 --- ipaserver/install/replication.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipaserver/install/replication.py') diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 000529f4..5474efdb 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -117,7 +117,7 @@ class ReplicationManager: return retval - def find_replication_dns(self, conn): + def find_replication_agreements(self): """ The replication agreements are stored in cn="$SUFFIX",cn=mapping tree,cn=config @@ -130,10 +130,10 @@ class ReplicationManager: """ filt = "(|(objectclass=nsDSWindowsReplicationAgreement)(objectclass=nsds5ReplicationAgreement))" try: - ents = conn.search_s("cn=mapping tree,cn=config", ldap.SCOPE_SUBTREE, filt) + ents = self.conn.search_s("cn=mapping tree,cn=config", ldap.SCOPE_SUBTREE, filt) except ldap.NO_SUCH_OBJECT: - return [] - return [ent.dn for ent in ents] + ents = [] + return ents def find_ipa_replication_agreements(self): """ -- cgit