Module: check_mk
Branch: master
Commit: fbee0d8783ce75eaa7c9aaab6015eb24dfca0f72
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fbee0d8783ce75…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Mar 23 09:05:18 2015 +0100
cisco_temp: Cleanup for inventory function
---
checks/cisco_temp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/checks/cisco_temp b/checks/cisco_temp
index e16c56a..ebfa8ad 100644
--- a/checks/cisco_temp
+++ b/checks/cisco_temp
@@ -52,7 +52,9 @@
def inventory_cisco_temp(checktyp, info):
# Skip sensors with state 5 (not present)
- return [ (name, None) for (name, state) in info if state != '5' ]
+ for name, state in info:
+ if state != '5':
+ yield name, None
def check_cisco_temp(item, _no_params, info):
for name, state in info: