Module: check_mk
Branch: master
Commit: 8c22024f5b97057bcaba0603cc349d7fa7c2ad8d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8c22024f5b9705…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 22 12:49:49 2015 +0200
WATO links/actions now preserve the debug html var to make debugging easier
---
web/htdocs/wato.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 78f1185..9c31183 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4833,7 +4833,7 @@ def mode_changelog(phase):
restart_site(site)
response = True
except Exception, e:
- response = str(e)
+ response = "%s" % e
if response == True:
return
@@ -19307,6 +19307,8 @@ def host_extra_conf(hostname, conflist):
# Create link keeping the context to the current folder / file
def make_link(vars):
vars = vars + [ ("folder", g_folder[".path"]) ]
+ if html.var("debug") == "1":
+ vars.append(("debug", "1"))
return html.makeuri_contextless(vars)
# Small helper for creating a link with a context to a given folder