Module: check_mk
Branch: master
Commit: af9f8bed5de81796977023e3059122a333e14ad5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af9f8bed5de817…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 27 11:12:08 2010 +0200
Fixed small coding error in megaraid_pdisks
---
checks/megaraid_pdisks | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checks/megaraid_pdisks b/checks/megaraid_pdisks
index 4e2b0db..952d98f 100644
--- a/checks/megaraid_pdisks
+++ b/checks/megaraid_pdisks
@@ -50,8 +50,8 @@ def inventory_megaraid_pdisks(checkname, info):
def check_megaraid_pdisks(item, target_state, info):
# item is "$ENCLOSURE/$SLOT"
# param is the target state
+ found = None
for line in info:
- found = None
if line[0] == "Enclosure":
enclosure = int(line[-1])
elif line[0] == "Slot":