From 7026643f8a7afaef5d59fa83e3994a978cd4dcc2 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Mon, 28 Dec 2020 10:20:29 +0100 Subject: [PATCH] UI - fix missing MULTISITE env var when managing services --- ui/entrypoint.py | 1 + ui/wrappers.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/entrypoint.py b/ui/entrypoint.py index db1e5a6..cd39bfb 100644 --- a/ui/entrypoint.py +++ b/ui/entrypoint.py @@ -80,6 +80,7 @@ def services(): # Check that all fields are present and they match the corresponding regex env = {} + env["MULTISITE"] = "yes" if request.form["operation"] in ["new", "edit"] : for category in current_app.config["CONFIG"] : for param in current_app.config["CONFIG"][category]["params"] : diff --git a/ui/wrappers.py b/ui/wrappers.py index c65736e..e27f0a6 100644 --- a/ui/wrappers.py +++ b/ui/wrappers.py @@ -71,9 +71,6 @@ def edit_service(client, old_server_name, env) : check, new = new_service(client, env) if not check : return check, new - check, nb = reload_instances(client) - if not check : - return check, nb return True, "Web service " + old_server_name + " has been edited." def delete_service(client, server_name) :