mirror of https://github.com/Aidaho12/haproxy-wi
parent
729df72f11
commit
fda5deaf97
|
@ -103,7 +103,7 @@ def get_system_info(server_ip: str) -> str:
|
||||||
|
|
||||||
command = ["sudo lshw -quiet -json"]
|
command = ["sudo lshw -quiet -json"]
|
||||||
try:
|
try:
|
||||||
sys_info_returned = ssh_command(server_ip, command)
|
sys_info_returned = ssh_command(server_ip, command, timeout=5)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
command = ['sudo hostnamectl |grep "Operating System"|awk -F":" \'{print $2}\'']
|
command = ['sudo hostnamectl |grep "Operating System"|awk -F":" \'{print $2}\'']
|
||||||
|
|
|
@ -1367,7 +1367,7 @@ function removeOption(id) {
|
||||||
type: "POST",
|
type: "POST",
|
||||||
success: function( data ) {
|
success: function( data ) {
|
||||||
data = data.replace(/\s+/g,' ');
|
data = data.replace(/\s+/g,' ');
|
||||||
if(data == "Ok ") {
|
if(data.indexOf('Ok') != '-1') {
|
||||||
$("#option-"+id).remove();
|
$("#option-"+id).remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue