Module: check_mk
Branch: master
Commit: 3df0560718147c89c569ffe5955398e558231cd8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3df0560718147c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Oct 24 15:32:06 2015 +0200
make new plugins finding function accept None path
---
modules/check_mk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 9945810..9741829 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1286,7 +1286,7 @@ def aggregated_service_name(hostname, servicedesc):
# '----------------------------------------------------------------------'
def plugin_pathnames_in_directory(path):
- if os.path.exists(path):
+ if path and os.path.exists(path):
return sorted([
path + "/" + f
for f in os.listdir(path)