No need to use a regular expression to find the replication host

430015
This commit is contained in:
Rob Crittenden 2008-03-31 18:27:42 -04:00
parent af50f341ad
commit 98f8a31320

View File

@ -57,9 +57,7 @@ def list_masters(replman, verbose):
for dn in dns:
entry = replman.conn.search_s(dn, ldap.SCOPE_SUBTREE)[0]
cn = entry.cn
other = re.search("meTo([a-zA-Z\.]*)[0-9]*", cn).groups()[0]
print other
print entry.getValue('nsds5replicahost')
if verbose:
print " last init status: %s" % entry.nsds5replicalastinitstatus