mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-28 09:06:44 -06:00
Prevent a crash when no entries are successfully migrated.
It would fail in _update_default_group() because migrate_cnt wasn't defined in context. https://fedorahosted.org/freeipa/ticket/3386
This commit is contained in:
parent
0e8a329048
commit
08b84befbc
@ -750,6 +750,7 @@ can use their Kerberos accounts.''')
|
||||
valid_gids = []
|
||||
invalid_gids = []
|
||||
migrate_cnt = 0
|
||||
context['migrate_cnt'] = 0
|
||||
for (dn, entry_attrs) in entries:
|
||||
context['migrate_cnt'] = migrate_cnt
|
||||
s = datetime.datetime.now()
|
||||
|
Loading…
Reference in New Issue
Block a user