server's state saving fix
pull/246/head
Pavel Loginov 2020-05-08 15:18:00 +02:00 committed by GitHub
commit c9b610cc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -603,8 +603,8 @@ if form.getvalue('servaction') is not None:
cmd='echo "%s %s" |sudo socat stdio %s | cut -d "," -f 1-2,5-10,18,34-36 | column -s, -t' % (enable, backend, haproxy_sock)
if form.getvalue('save') == "on":
save_command = 'echo "show servers state" | sudo socat stdio %s > %s' % (haproxy_sock, server_state_file)
command = [ cmd, save_command ]
save_command = 'echo "show servers state" | sudo socat %s stdio > %s' % (haproxy_sock, server_state_file)
command = [ cmd + ';' + save_command ]
else:
command = [ cmd ]