Fix install service
pull/372/head
Aidaho 2023-12-19 11:08:52 +03:00
parent f94c2021a7
commit 87657806ab
2 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ def service_actions_after_install(server_ips: str, service: str, json_data) -> N
sql.insert_or_update_service_setting(server_id, service, 'restart', '1')
def install_service(service: str, json_data: object) -> object:
def install_service(service: str, json_data: str) -> object:
try:
json_data = json.loads(json_data)
except Exception as e:

View File

@ -416,7 +416,7 @@ function installServiceCluster(jsonData, service, progress_step) {
$('#server_creating_list').append('<li id="' + li_id + servers['cluster_id'] + '" class="server-creating proccessing">' + install_mess + ' ' + nice_service_name[service] + '</li>');
return $.ajax({
url: "/app/install/" + service,
type: "PUT",
type: "POST",
statusCode: {
500: function () {
showErrorStatus(nice_service_name[service], servers["name"], li_id, servers['cluster_id'], progress_step, something_wrong);