[checkmk-commits] Make importing of module files handle --debug

Lars Michelsen lm at mathias-kettner.de
Tue May 10 11:13:16 CEST 2016


Module: check_mk
Branch: master
Commit: 2489ae8e1ece33e1f8e41f97dad4adc7587720b6
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2489ae8e1ece33e1f8e41f97dad4adc7587720b6

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Tue May 10 11:12:45 2016 +0200

Make importing of module files handle --debug

---

 modules/check_mk.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/check_mk.py b/modules/check_mk.py
index 26a4b10..a3c6c59 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -342,6 +342,8 @@ try:
             load_module(module)
 
 except Exception, e:
+    if opt_debug:
+        raise
     sys.stderr.write("Cannot read module %s: %s\n" % (module, e))
     sys.exit(5)
 



More information about the checkmk-commits mailing list