Module: check_mk
Branch: master
Commit: 4063af8df14f7b7d4767d84f0372fc08a6d60630
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4063af8df14f7b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 20 13:07:30 2019 +0100
7175 FIX Fixed exception when trying to export agent output for non WATO hosts
The actions "Fetch agent output" and "Fetch SNMP walk" can only be
used for hosts
managed by WATO for distributed sites. The error message for non WATO hosts could
not be displayed correctly and resulted in a crash which is fixed now.
Change-Id: I004cc30cc4ee6f2bc51252d4e7948288046073d8
---
.werks/7175 | 13 +++++++++++++
cmk/gui/wato/__init__.py | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/7175 b/.werks/7175
new file mode 100644
index 0000000..efa6d27
--- /dev/null
+++ b/.werks/7175
@@ -0,0 +1,13 @@
+Title: Fixed exception when trying to export agent output for non WATO hosts
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1550661767
+
+The actions "Fetch agent output" and "Fetch SNMP walk" can only be
used for hosts
+managed by WATO for distributed sites. The error message for non WATO hosts could
+not be displayed correctly and resulted in a crash which is fixed now.
diff --git a/cmk/gui/wato/__init__.py b/cmk/gui/wato/__init__.py
index c91ce55..9dc4ed1 100644
--- a/cmk/gui/wato/__init__.py
+++ b/cmk/gui/wato/__init__.py
@@ -617,7 +617,7 @@ class AgentOutputPage(object):
if not host:
raise MKGeneralException(
_("Host is not managed by WATO. "
- "Click <a href=\"%s\">here</a> to go
back.") % html.escape_attribute(
+ "Click <a href=\"%s\">here</a> to go
back.") % html.escaper.escape_attribute(
self._back_url))
host.need_permission("read")
self._host = host