mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
No need to use a regular expression to find the replication host
430015
This commit is contained in:
@@ -57,9 +57,7 @@ def list_masters(replman, verbose):
|
|||||||
|
|
||||||
for dn in dns:
|
for dn in dns:
|
||||||
entry = replman.conn.search_s(dn, ldap.SCOPE_SUBTREE)[0]
|
entry = replman.conn.search_s(dn, ldap.SCOPE_SUBTREE)[0]
|
||||||
cn = entry.cn
|
print entry.getValue('nsds5replicahost')
|
||||||
other = re.search("meTo([a-zA-Z\.]*)[0-9]*", cn).groups()[0]
|
|
||||||
print other
|
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print " last init status: %s" % entry.nsds5replicalastinitstatus
|
print " last init status: %s" % entry.nsds5replicalastinitstatus
|
||||||
|
|||||||
Reference in New Issue
Block a user