Module: check_mk
Branch: master
Commit: fa5498694949bec868da203feed54f03e419e103
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa5498694949be…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 22 09:37:48 2017 +0100
4391 FIX Services: Fixed broken link for services having no WATO configurable check
parameters
Change-Id: I88ca124d53b49b8bd93854d6ad3c4e9e9725906a
---
.werks/4391 | 10 ++++++++++
web/htdocs/wato.py | 6 +++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/4391 b/.werks/4391
new file mode 100644
index 0000000..9f590b5
--- /dev/null
+++ b/.werks/4391
@@ -0,0 +1,10 @@
+Title: Services: Fixed broken link for services having no WATO configurable check
parameters
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.5.0i1
+Date: 1487752620
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 7d39b9d..78dbf6a 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3211,8 +3211,12 @@ class ModeDiscovery(WatoMode):
_("View and edit the parameters for this service"),
"rulesets")
def check_parameters_button():
+ ruleset_name = self._get_ruleset_name(check_source, check_type, checkgroup)
+ if ruleset_name is None:
+ return
+
url = folder_preserving_link([("mode", "edit_ruleset"),
- ("varname", self._get_ruleset_name(check_source,
check_type, checkgroup)),
+ ("varname", ruleset_name),
("host", self._host_name),
("item", mk_repr(item))])
html.icon_button(url,