Module: check_mk
Branch: master
Commit: 73f67622108d1d4bdf343fc1cdcaea32ba86df19
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=73f67622108d1d…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Fri Nov 16 14:51:58 2018 +0100
Bug fix type validation: Not integral raises the error
Change-Id: I50e9b5c5874d9bf43176ccde7e014c2690bc5787
---
cmk/gui/valuespec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/valuespec.py b/cmk/gui/valuespec.py
index 133a73f..bdee4a4 100644
--- a/cmk/gui/valuespec.py
+++ b/cmk/gui/valuespec.py
@@ -363,7 +363,7 @@ class Integer(ValueSpec):
return text
def validate_datatype(self, value, varprefix):
- if isinstance(value, numbers.Integral):
+ if not isinstance(value, numbers.Integral):
raise MKUserError(
varprefix,
_("The value %r has the wrong type %s, but must be of type
int") %