ipaserver/plugins/trust.py; fix some indenting issues

Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
This commit is contained in:
Alexander Bokovoy
2017-11-09 09:57:47 +02:00
parent 3eb3844353
commit 956e265fae

View File

@@ -322,11 +322,13 @@ def generate_creds(trustinstance, style, **options):
else:
sp = admin_name.split(sep)
if len(sp) == 1:
sp.append(trustinstance.remote_domain.info['dns_domain'].upper())
sp.append(trustinstance.remote_domain
.info['dns_domain'].upper())
creds = u"{name}%{password}".format(name=sep.join(sp),
password=password)
return creds
def add_range(myapi, trustinstance, range_name, dom_sid, *keys, **options):
"""
First, we try to derive the parameters of the ID range based on the
@@ -638,8 +640,7 @@ class trust(LDAPObject):
add_message(
options['version'],
result,
BrokenTrust(domain=entry.single_value['cn'])
)
BrokenTrust(domain=entry.single_value['cn']))
@register()