mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-25 15:46:30 -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:
|
try:
|
||||||
targetdn = DN(target.replace('ldap:///',''))
|
targetdn = DN(target.replace('ldap:///',''))
|
||||||
except ValueError as e:
|
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)):
|
if targetdn.endswith(DN(api.env.container_group, api.env.basedn)):
|
||||||
kw['targetgroup'] = targetdn[0]['cn']
|
kw['targetgroup'] = targetdn[0]['cn']
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user