From 08b84befbc40faca21ffe44dcc69aaf498a2f9f2 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 8 Feb 2013 09:42:34 -0500 Subject: 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 --- ipalib/plugins/migration.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipalib/plugins/migration.py') diff --git a/ipalib/plugins/migration.py b/ipalib/plugins/migration.py index ccb484e4..1ba21ece 100644 --- a/ipalib/plugins/migration.py +++ b/ipalib/plugins/migration.py @@ -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() -- cgit