migrate-ds: remove unused def_group_gid context property

it's no longer used anywhere

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Petr Vobornik 2015-03-23 12:15:52 +01:00
parent fda9698844
commit a6ca9800fa

View File

@ -758,12 +758,10 @@ can use their Kerberos accounts.''')
def_group = config.get('ipadefaultprimarygroup')
context['def_group_dn'] = api.Object.group.get_dn(def_group)
try:
g_attrs = ldap.get_entry(context['def_group_dn'], ['gidnumber', 'cn'])
ldap.get_entry(context['def_group_dn'], ['gidnumber', 'cn'])
except errors.NotFound:
error_msg = _('Default group for new users not found')
raise errors.NotFound(reason=error_msg)
if 'gidnumber' in g_attrs:
context['def_group_gid'] = g_attrs['gidnumber'][0]
context['has_upg'] = ldap.has_upg()