From e0685e7167f72740f1ba647e982881a9dd780825 Mon Sep 17 00:00:00 2001 From: Cyril Levis Date: Fri, 2 Dec 2022 12:28:47 +0100 Subject: [PATCH] fix: add space in ignore_patterns to prevent false positive like `/data/cache/temp` for eg --- netbox_agent/raid/hp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_agent/raid/hp.py b/netbox_agent/raid/hp.py index 5990009..2d6bcd6 100644 --- a/netbox_agent/raid/hp.py +++ b/netbox_agent/raid/hp.py @@ -34,7 +34,7 @@ def ssacli(sub_command): return lines def _test_if_valid_line(line): - ignore_patterns = ['Note:', 'Error:', 'is not loaded', 'README', 'failure', 'cache'] + ignore_patterns = ['Note:', 'Error:', 'is not loaded', 'README', ' failure', ' cache'] for pattern in ignore_patterns: if not line or pattern in line: return None -- 2.48.1