wrap long line

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Christian Heimes 2016-11-24 16:00:47 +01:00 committed by Martin Basti
parent fef6f18aa2
commit 6bbbce4473

View File

@ -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: