Module: check_mk
Branch: master
Commit: e5c97e6625a722d5e40456fd4ba75f82ab8219c0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5c97e6625a722…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 14 08:46:30 2016 +0200
replaced opt_debug in inventory plugin
---
inventory/export_software_csv | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inventory/export_software_csv b/inventory/export_software_csv
index a80f04e..fdc59b7 100644
--- a/inventory/export_software_csv
+++ b/inventory/export_software_csv
@@ -49,7 +49,7 @@ def inv_export_software_csv(hostname, params, tree):
try:
os.makedirs(dirname)
except Exception, e:
- if opt_debug:
+ if cmk.debug.enabled():
raise
raise MKGeneralException("Cannot create missing directory %s: %s" %
(
dirname, e))