From 149c09ddc8a00e6f6dc29e006dd841ca82578cf2 Mon Sep 17 00:00:00 2001 From: Stig Sandbeck Mathisen Date: Sun, 5 Oct 2014 15:47:22 +0200 Subject: [PATCH] Fix syntax error in regular expression string --- plugins/snmp/snmp__brocade_ifs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/snmp/snmp__brocade_ifs b/plugins/snmp/snmp__brocade_ifs index 2b04de29..c0578e3e 100755 --- a/plugins/snmp/snmp__brocade_ifs +++ b/plugins/snmp/snmp__brocade_ifs @@ -269,7 +269,7 @@ if 'MUNIN_CAP_MULTIGRAPH' not in os.environ: # Parse host_name and counter type from arg0 called_as = os.path.basename(sys.argv[0]) -regex_str = '^snmp_'(.+)'_brocade_ifs' +regex_str = r'^snmp_(.+)_brocade_ifs' match = re.match(regex_str, called_as) if match: host_name = match.group(1)