mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
Fix dict iteration bug in dnsrecord_show
In structured mode, dict size is modified by del record[attr]. https://pagure.io/freeipa/issue/7275 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
191605efd6
commit
f528a44865
@ -3206,7 +3206,7 @@ class dnsrecord(LDAPObject):
|
||||
|
||||
def postprocess_record(self, record, **options):
|
||||
if options.get('structured', False):
|
||||
for attr in record.keys():
|
||||
for attr in tuple(record.keys()):
|
||||
# attributes in LDAPEntry may not be normalized
|
||||
attr = attr.lower()
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user