Module: check_mk
Branch: master
Commit: 96487faacacfab6b222823072604b69eb5e9d970
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=96487faacacfab…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Sep 16 13:10:10 2013 +0200
agent_vsphere.fast: improved robustness when regex sections are missing
---
agents/special/agent_vsphere.fast | 2 ++
1 file changed, 2 insertions(+)
diff --git a/agents/special/agent_vsphere.fast b/agents/special/agent_vsphere.fast
index 35cfe6e..70dced3 100755
--- a/agents/special/agent_vsphere.fast
+++ b/agents/special/agent_vsphere.fast
@@ -258,6 +258,8 @@ esx_name = ""
import re
def get_pattern(pattern, line):
+ if not line:
+ return []
p = re.compile(pattern)
return p.findall(line)