Module: check_mk
Branch: master
Commit: 533661f8e1c871acf8462b907003c05b98c69cbd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=533661f8e1c871…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Feb 6 16:37:01 2018 +0100
Fixed typo
Change-Id: I9c5e3024be6e5525785a45f41c3f30a6b35ea05a
---
cmk/structured_data.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/structured_data.py b/cmk/structured_data.py
index 76a0701..af36fa2 100644
--- a/cmk/structured_data.py
+++ b/cmk/structured_data.py
@@ -112,7 +112,7 @@ class StructuredDataTree(object):
def _validate_tree_path(self, tree_path):
if not tree_path:
raise MKGeneralException("Empty tree path or zero.")
- if not isinstance(tree_path, str) or not isinstance(tree_path, unicode):
+ if not (isinstance(tree_path, str) or isinstance(tree_path, unicode)):
raise MKGeneralException("Wrong tree path format. Must be of type
string.")
if not (tree_path.endswith(":") or tree_path.endswith(".")):
raise MKGeneralException("No valid tree path.")