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:
Rob Crittenden authored and Martin Kosek committed 2013-02-08 16:23:25 +01:00
1 parent 0e8a329048
commit 08b84befbc
1 file changed
+1
+1
View File
@@ -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()