mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-replica-manage: migrate to single_value after LDAPEntry updates
This commit is contained in:
committed by
Martin Kosek
parent
ead4280a92
commit
0b0af8b233
@@ -632,11 +632,11 @@ def del_master(realm, hostname, options):
|
||||
this_services = []
|
||||
other_services = []
|
||||
|
||||
for master_cn in [m.getValue('cn') for m in masters]:
|
||||
for master_cn in [m.single_value('cn') for m in masters]:
|
||||
master_dn = DN(('cn', master_cn), ('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'), ipautil.realm_to_suffix(realm))
|
||||
services = delrepl.conn.get_entries(master_dn,
|
||||
delrepl.conn.SCOPE_ONELEVEL)
|
||||
services_cns = [s.getValue('cn') for s in services]
|
||||
services_cns = [s.single_value('cn') for s in services]
|
||||
|
||||
if master_cn == hostname:
|
||||
this_services = services_cns
|
||||
|
||||
Reference in New Issue
Block a user