Skip to content
Snippets Groups Projects
Commit df65de90 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipaserver_setup_http: Only use tasks.restore_context for old releases

tasks.restore_context is only used in old releases. The existence of
paths.CACHE_IPA_SESSIONS is used to determine if the call needs to be
done or not.
parent 46925086
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,7 @@ def main():
subject_base=options.subject_base,
auto_redirect=not options.no_ui_redirect,
ca_is_configured=options.setup_ca)
if hasattr(paths, "CACHE_IPA_SESSIONS"):
tasks.restore_context(paths.CACHE_IPA_SESSIONS)
ca.set_subject_base_in_config(options.subject_base)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment