Module: check_mk
Branch: master
Commit: 306557c09e26d5543b9a4ed6412d3096982a579b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=306557c09e26d5…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Fri Jan 22 14:44:05 2016 +0100
zpool_status: fixed crash in inventory when section exists but is empty
---
checks/zpool_status | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/zpool_status b/checks/zpool_status
index f3cc162..538f09f 100644
--- a/checks/zpool_status
+++ b/checks/zpool_status
@@ -63,7 +63,7 @@
# inventory function
def inventory_zpool_status(info):
- if " ".join(info[0]) == "no pools available":
+ if not info or " ".join(info[0]) == "no pools available":
return []
return [(None, None)]