Module: check_mk
Branch: master
Commit: 840a90f24a0e38c5c80da4798787427072c9d578
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=840a90f24a0e38…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue May 27 17:21:06 2014 +0200
inv: let exception happen on --debug in inventory check
---
modules/inventory.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/inventory.py b/modules/inventory.py
index ee83580..cdbf3a1 100644
--- a/modules/inventory.py
+++ b/modules/inventory.py
@@ -203,6 +203,8 @@ def do_inv_check(hostname):
sys.stdout.write("OK - found %d entries\n" % num_entries)
sys.exit(0)
except Exception, e:
+ if opt_debug:
+ raise
sys.stdout.write("WARN - Inventory failed: %s\n" % e)
sys.exit(1)