mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix syntax error in regular expression string
This commit is contained in:
parent
ad9a1aac23
commit
149c09ddc8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue