Pavel Loginov 2021-03-14 01:13:13 +06:00
parent 7c0aadc36c
commit 83b7c31bb5
2 changed files with 2 additions and 4 deletions

View File

@ -495,8 +495,6 @@ def show_installation_output(error, output, service):
for l in output:
if "Traceback" in l or "FAILED" in l:
try:
l = l.split(':')[1]
l = l.split('"')[1]
print(l)
break
except Exception:
@ -530,7 +528,7 @@ def install_haproxy(serv, **kwargs):
os.system("cp scripts/%s ." % script)
if hapver is None:
hapver = '2.0.7-1'
hapver = '2.3.0-1'
if proxy is not None and proxy != '' and proxy != 'None':
proxy_serv = proxy

View File

@ -33,7 +33,7 @@ if form.getvalue('alert_consumer') is None:
if form.getvalue('getcerts') is not None and serv is not None:
cert_path = sql.get_setting('cert_path')
commands = ["ls -1t " + cert_path + " |grep -E 'pem|crt|key'"]
commands = ["sudo ls -1t " + cert_path + " |grep -E 'pem|crt|key'"]
try:
funct.ssh_command(serv, commands, ip="1")
except Exception as e: