diff --git a/app/funct.py b/app/funct.py index ac2938d..b65bc40 100644 --- a/app/funct.py +++ b/app/funct.py @@ -1386,12 +1386,10 @@ def server_status(stdout): def ssh_command(server_ip, commands, **kwargs): - from shlex import quote ssh = ssh_connect(server_ip) for command in commands: try: - command = quote(command) stdin, stdout, stderr = ssh.exec_command(command, get_pty=True) except Exception as e: logging('localhost', ' ' + str(e), haproxywi=1) diff --git a/inc/users.js b/inc/users.js index 671dccf..19d9129 100644 --- a/inc/users.js +++ b/inc/users.js @@ -291,7 +291,7 @@ $( function() { if (data.indexOf('error:') != '-1') { toastr.clear(); toastr.error(data); - } else if(data == 'no' || data == '') { + } else if(data == 'no' || data == '' || data.indexOf('No') != '-1') { $('#cur_haproxy_exp_ver').text('HAProxy exporter has been not installed'); } else { $('#cur_haproxy_exp_ver').text(data);