mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 01:41:14 -06:00
No need to use a regular expression to find the replication host
430015
This commit is contained in:
parent
af50f341ad
commit
98f8a31320
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user