mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
fix 'iparepltopomanagedsuffix' attribute consumers
Commit 46ae52569a
reimplemented reporting of
managed topology suffixes in server-find/show commands using membership
attributes. This patch fixes consumers of this attribute in ipa-replica-manage
command and webui to reflect this change.
Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
8f5f0d6edd
commit
525f6281d8
@ -573,14 +573,10 @@ def check_last_link(delrepl, realm, dirman_passwd, force):
|
||||
|
||||
def map_masters_to_suffixes(masters, suffixes):
|
||||
masters_to_suffix = {}
|
||||
suffix_name_to_root = {
|
||||
s['iparepltopoconfroot'][0]: s['cn'][0] for s in suffixes
|
||||
}
|
||||
|
||||
for master in masters:
|
||||
managed_suffixes = master['iparepltopomanagedsuffix']
|
||||
for suffix in managed_suffixes:
|
||||
suffix_name = suffix_name_to_root[suffix]
|
||||
managed_suffixes = master['iparepltopomanagedsuffix_topologysuffix']
|
||||
for suffix_name in managed_suffixes:
|
||||
try:
|
||||
masters_to_suffix[suffix_name].append(master)
|
||||
except KeyError:
|
||||
|
@ -206,7 +206,7 @@ return {
|
||||
'cn',
|
||||
'ipamindomainlevel',
|
||||
'ipamaxdomainlevel',
|
||||
'iparepltopomanagedsuffix'
|
||||
'iparepltopomanagedsuffix_topologysuffix'
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -220,7 +220,7 @@ return {
|
||||
{ name: 'cn', read_only: true },
|
||||
{ name: 'ipamindomainlevel', read_only: true },
|
||||
{ name: 'ipamaxdomainlevel', read_only: true },
|
||||
{ $type: 'multivalued', name: 'iparepltopomanagedsuffix', read_only: true }
|
||||
{ $type: 'multivalued', name: 'iparepltopomanagedsuffix_topologysuffix', read_only: true }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user