2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fix syntax error in regular expression string

This commit is contained in:
Stig Sandbeck Mathisen 2014-10-05 15:47:22 +02:00
parent ad9a1aac23
commit 149c09ddc8

View File

@ -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)