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:
Martin Babinsky
2015-12-01 13:47:14 +01:00
committed by Martin Basti
parent 8f5f0d6edd
commit 525f6281d8
2 changed files with 4 additions and 8 deletions
+2 -6
View File
@@ -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:
+2 -2
View File
@@ -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 }
]
}
]