Module: check_mk
Branch: master
Commit: a899b4a4f953df3104ad55214dbbd67506ffc8e2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a899b4a4f953df…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Fri Jun 12 12:14:00 2015 +0200
FIX for traceback in CLI of check_mk service discovery
---
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 9906bc7..6aedca7 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -776,7 +776,7 @@ def snmp_get_oid(hostname, ipaddress, oid):
value = None
# Strip quotes
- if value.startswith('"') and value.endswith('"'):
+ if value and value.startswith('"') and
value.endswith('"'):
value = value[1:-1]
return value