summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-29 16:20:23 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-30 14:09:24 +0200
commit2615103c68e68596473260064dbe84585073eb51 (patch)
tree7fca52f8272c79125514014fb2e9c3ab923252a4 /install
parent7d9afd988aef0ae570683d387770995a8f21dc9f (diff)
downloadfreeipa-2615103c68e68596473260064dbe84585073eb51.tar.gz
freeipa-2615103c68e68596473260064dbe84585073eb51.tar.xz
freeipa-2615103c68e68596473260064dbe84585073eb51.zip
makeaci, makeapi, oddjob: use the default API context
Use the default context rather the server context for code not running inside the server. This prevents the affected code from attempting to initialize the session manager. https://fedorahosted.org/freeipa/ticket/5988 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'install')
-rwxr-xr-xinstall/oddjob/com.redhat.idm.trust-fetch-domains4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/oddjob/com.redhat.idm.trust-fetch-domains b/install/oddjob/com.redhat.idm.trust-fetch-domains
index 57b15f7ee..a6b87cde9 100755
--- a/install/oddjob/com.redhat.idm.trust-fetch-domains
+++ b/install/oddjob/com.redhat.idm.trust-fetch-domains
@@ -72,11 +72,11 @@ if len(args) != 1:
trusted_domain = ipautil.fsdecode(args[0]).lower()
env = Env()
-env._bootstrap(context='server', debug=options.debug, log=None)
+env._bootstrap(debug=options.debug, log=None)
env._finalize_core(**dict(DEFAULT_CONFIG))
# Initialize the API with the proper debug level
-api.bootstrap(context='server', debug=env.debug, log=None)
+api.bootstrap(debug=env.debug, log=None)
api.finalize()
# Only import trust plugin after api is initialized or internal imports