Module: check_mk
Branch: master
Commit: 9a9207ca6741f40fe1f4d9a80ec7d146d198c92b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9a9207ca6741f4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 8 17:58:55 2015 +0100
multipath: fix recent error with undefined "regex" variable
---
checks/multipath | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/multipath b/checks/multipath
index f3b0f95..b212b83 100644
--- a/checks/multipath
+++ b/checks/multipath
@@ -202,8 +202,8 @@ def parse_multipath(info):
if line[0][0] not in [ '[', '`', '|', '\\' ] and
not line[0].startswith("size="):
# Try to match header lines
matchobject = None
- for regex, uuid_pos, alias_pos, dm_pos in reg_headers:
- matchobject = regex.search(l)
+ for header_regex, uuid_pos, alias_pos, dm_pos in reg_headers:
+ matchobject = header_regex.search(l)
if matchobject:
uuid = matchobject.group(uuid_pos).strip()