Module: check_mk
Branch: master
Commit: bae038fb77fd4fe171369a1af0c5aef2c25d908e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bae038fb77fd4f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Sep 30 08:14:54 2014 +0200
enterasys_temp: avoid exception on empty info
---
checks/enterasys_temp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/checks/enterasys_temp b/checks/enterasys_temp
index c25d9eb..32e787d 100644
--- a/checks/enterasys_temp
+++ b/checks/enterasys_temp
@@ -27,9 +27,7 @@
enterasys_temp_default_levels = (30, 35)
def inventory_enterasys_temp(info):
- if info[0][0] == "0":
- return []
- else:
+ if info and info[0][0] != "0":
return [ (None, "enterasys_temp_default_levels") ]
def check_enterasys_temp(item, params, info):