mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
wrap long line
Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
fef6f18aa2
commit
6bbbce4473
@ -354,7 +354,8 @@ def _aci_to_kw(ldap, a, test=False, pkey_only=False):
|
||||
try:
|
||||
targetdn = DN(target.replace('ldap:///',''))
|
||||
except ValueError as e:
|
||||
raise errors.ValidationError(name='subtree', error=_("invalid DN (%s)") % e)
|
||||
raise errors.ValidationError(
|
||||
name='subtree', error=_("invalid DN (%s)") % e)
|
||||
if targetdn.endswith(DN(api.env.container_group, api.env.basedn)):
|
||||
kw['targetgroup'] = targetdn[0]['cn']
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user