Module: check_mk
Branch: master
Commit: 49a64f3d4824fcbf951a94361d3bf242fed52655
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49a64f3d4824fc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 11 12:51:41 2016 +0200
3470 FIX mounts: Fix exception when displaying check parameters in WATO services list
The reason for this exception was that the autodiscovery now creates Unicode
strings while the WATO parameter definition only allowed normal strings.
---
.werks/3470 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 4 +++-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/3470 b/.werks/3470
new file mode 100644
index 0000000..a9ac90e
--- /dev/null
+++ b/.werks/3470
@@ -0,0 +1,11 @@
+Title: mounts: Fix exception when displaying check parameters in WATO services list
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1462963852
+
+The reason for this exception was that the autodiscovery now creates Unicode
+strings while the WATO parameter definition only allowed normal strings.
diff --git a/ChangeLog b/ChangeLog
index 6752478..2d6af3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -213,6 +213,7 @@
* 3529 FIX: agent_netapp: fixed problem with older netapp versions (7Mode - Version
8.0)...
* 3573 FIX: ps: Fixed possible wrong matching of ps and ucb ps commands
* 3131 FIX: if64, if64adm: These checks now display the speed of interfaces slower
than 1Mbit correctly...
+ * 3470 FIX: mounts: Fix exception when displaying check parameters in WATO services
list...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 952083c..1247a6b 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -2855,7 +2855,9 @@ register_check_parameters(
help = _("Specify all expected mount options here. If the list of "
"actually found options differs from this list, the check will go "
"warning or critical. Just the option <tt>commit</tt> is being
"
- "ignored since it is modified by the power saving algorithms.")),
+ "ignored since it is modified by the power saving algorithms."),
+ valuespec = TextUnicode(),
+ ),
TextAscii(
title = _("Mount point"),
allow_empty = False),