UI - fix missing MULTISITE env var when managing services
This commit is contained in:
parent
06f688fe97
commit
7026643f8a
@ -80,6 +80,7 @@ def services():
|
|||||||
|
|
||||||
# Check that all fields are present and they match the corresponding regex
|
# Check that all fields are present and they match the corresponding regex
|
||||||
env = {}
|
env = {}
|
||||||
|
env["MULTISITE"] = "yes"
|
||||||
if request.form["operation"] in ["new", "edit"] :
|
if request.form["operation"] in ["new", "edit"] :
|
||||||
for category in current_app.config["CONFIG"] :
|
for category in current_app.config["CONFIG"] :
|
||||||
for param in current_app.config["CONFIG"][category]["params"] :
|
for param in current_app.config["CONFIG"][category]["params"] :
|
||||||
|
|||||||
@ -71,9 +71,6 @@ def edit_service(client, old_server_name, env) :
|
|||||||
check, new = new_service(client, env)
|
check, new = new_service(client, env)
|
||||||
if not check :
|
if not check :
|
||||||
return check, new
|
return check, new
|
||||||
check, nb = reload_instances(client)
|
|
||||||
if not check :
|
|
||||||
return check, nb
|
|
||||||
return True, "Web service " + old_server_name + " has been edited."
|
return True, "Web service " + old_server_name + " has been edited."
|
||||||
|
|
||||||
def delete_service(client, server_name) :
|
def delete_service(client, server_name) :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user