Module: check_mk
Branch: master
Commit: 49a372bf2ef84bcc9a264eac989b9136f1f86b40
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49a372bf2ef84b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 3 08:10:34 2016 +0200
3461 FIX Fixed exception in case manpage for non existant check is accessed
---
.werks/3461 | 10 ++++++++++
ChangeLog | 1 +
modules/automation.py | 3 +++
3 files changed, 14 insertions(+)
diff --git a/.werks/3461 b/.werks/3461
new file mode 100644
index 0000000..9ce76fe
--- /dev/null
+++ b/.werks/3461
@@ -0,0 +1,10 @@
+Title: Fixed exception in case manpage for non existant check is accessed
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1462255808
+
+
diff --git a/ChangeLog b/ChangeLog
index 0c8bf8b..1309c74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -339,6 +339,7 @@
* 3457 FIX: Bulk edit: Prevent browser auto completion of stored credentials
* 3458 FIX: Bulk edit: Fixed broken unchecking of attributes after complain
* 3459 FIX: Bulk edit: Fixed mixup of attributes during consecutive bulk edits
+ * 3461 FIX: Fixed exception in case manpage for non existant check is accessed
Notifications:
* 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/modules/automation.py b/modules/automation.py
index 8be74cd..f3d467a 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -651,6 +651,9 @@ def automation_get_check_manpage(args):
# Assume active check
elif check_type.startswith("check_"):
manpage["type"] = "active"
+ else:
+ raise MKAutomationError("Could not detect type of manpage: %s. "
+ "Maybe the check is missing." % check_type)
return manpage