diff options
author | Woo <lukasz@bytemotion.se> | 2022-02-22 08:06:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 10:06:51 +0300 |
commit | 20dfab81927abb4f99c99416e9a2c551d650f1b9 (patch) | |
tree | d5c2a1e3795d398e4ab5664c8746e4131ea617fa /collectors/python.d.plugin/hpssa/hpssa.chart.py | |
parent | 570a61e17b3ed6e9fd4857ac38fa468d57c1e37d (diff) |
Fix `hpssa` parse error (#12206)
Diffstat (limited to 'collectors/python.d.plugin/hpssa/hpssa.chart.py')
-rw-r--r-- | collectors/python.d.plugin/hpssa/hpssa.chart.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/hpssa/hpssa.chart.py b/collectors/python.d.plugin/hpssa/hpssa.chart.py index ce1b43009c..4da73dc56a 100644 --- a/collectors/python.d.plugin/hpssa/hpssa.chart.py +++ b/collectors/python.d.plugin/hpssa/hpssa.chart.py @@ -93,6 +93,7 @@ ignored_sections_regex = re.compile( re.X ) mirror_group_regex = re.compile(r'^Mirror Group \d+:$') +disk_partition_regex = re.compile(r'^Disk Partition Information$') array_regex = re.compile(r'^Array: (?P<id>[A-Z]+)$') drive_regex = re.compile( r''' @@ -242,7 +243,7 @@ class HPSSA(object): } for line in self: - if mirror_group_regex.match(line): + if HPSSA.match_any(line, mirror_group_regex, disk_partition_regex): self.parse_ignored_section() continue |