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:
parent
ad9a1aac23
commit
149c09ddc8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user