UI - fix missing MULTISITE env var when managing services

This commit is contained in:
bunkerity 2020-12-28 10:20:29 +01:00
parent 06f688fe97
commit 7026643f8a
No known key found for this signature in database
GPG Key ID: 654FFF51CEF7CC47
2 changed files with 1 additions and 3 deletions

View File

@ -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"] :

View File

@ -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) :