mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Display all orphaned keys in automountlocation-tofiles
Only the first key was being displayed for any orphaned map. https://pagure.io/freeipa/issue/7814 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Francois Cami <fcami@redhat.com>
This commit is contained in:
parent
d4d545a1c0
commit
3e9bb606b4
@ -104,13 +104,15 @@ class automountlocation_tofiles(MethodOverride):
|
||||
textui.print_plain('/etc/%s:' % m['automountmapname'])
|
||||
for k in orphankeys:
|
||||
if len(k) == 0: continue
|
||||
dn = DN(k[0]['dn'])
|
||||
if dn['automountmapname'] == m['automountmapname'][0]:
|
||||
textui.print_plain(
|
||||
'%s\t%s' % (
|
||||
k[0]['automountkey'][0], k[0]['automountinformation'][0]
|
||||
for key in k:
|
||||
dn = DN(key['dn'])
|
||||
if dn['automountmapname'] == m['automountmapname'][0]:
|
||||
textui.print_plain(
|
||||
'%s\t%s' % (
|
||||
key['automountkey'][0],
|
||||
key['automountinformation'][0]
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@register()
|
||||
|
Loading…
Reference in New Issue
Block a user