Merge pull request #199 from verdel/fix_runtime_api_output

Fix a issue with displaying the result of the "Show" command in the "Runtime API" section
pull/200/head
Pavel Loginov 2020-01-08 23:32:46 +06:00 committed by GitHub
commit d0787a0c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ if form.getvalue('servaction') is not None:
if enable != "show":
print('<center><h3>You %s %s on HAproxy %s. <a href="viewsttats.py?serv=%s" title="View stat" target="_blank">Look it</a> or <a href="edit.py" title="Edit">Edit something else</a></h3><br />' % (enable, backend, serv, serv))
funct.ssh_command(serv, command, show_log="1")
print(funct.ssh_command(serv, command, show_log="1"))
action = 'edit.py ' + enable + ' ' + backend
funct.logging(serv, action)