ipactl: use server API

Initialize API in ipactl with in_server=True, as this is a server-side
script.

https://fedorahosted.org/freeipa/ticket/4739

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Jan Cholasta 2016-06-01 14:43:27 +02:00
parent 08ff248eee
commit 875801d1d9

View File

@ -559,7 +559,7 @@ def main():
else: else:
raise e raise e
api.bootstrap(context='ipactl', debug=options.debug) api.bootstrap(in_server=True, context='ipactl', debug=options.debug)
api.finalize() api.finalize()
if '.' not in api.env.host: if '.' not in api.env.host: