Module: check_mk
Branch: master
Commit: 1f24272def9b77f105013352c8c0e19cbd356eb9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1f24272def9b77…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 19 16:09:38 2012 +0200
FIX: Fixed error in printer_supply valuespec which lead to exception
when defining host/service specific rules
---
ChangeLog | 2 ++
web/plugins/wato/check_parameters.py | 8 +++++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 53126f6..2be65c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -97,6 +97,8 @@
* FIX: complex list widgets (ListOf) failed back to old value when
complaining
* FIX: complex list widgets (ListOf) lost remaining entries after deleting one
+ * FIX: Fixed error in printer_supply valuespec which lead to an exception
+ when defining host/service specific rules
BI:
* Great speed up of rule compilation in large environments
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index c14ec5a..1a65a74 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -971,11 +971,13 @@ checkgroups.append((
help = _("Levels for printer cardridges."),
elements = [
Float(title = _("Warning remaining")),
- Float(title = _("Critical remaining"))]),
+ Float(title = _("Critical remaining"))]
+ ),
TextAscii(
title = _("cardridge specification"),
- allow_empty = True),
- "dict",
+ allow_empty = True
+ ),
+ None,
))
checkgroups.append((