fix: add space in ignore_patterns

to prevent false positive like `/data/cache/temp` for eg
This commit is contained in:
Cyril Levis 2022-12-02 12:28:47 +01:00
parent ba0be73d3c
commit e0685e7167
No known key found for this signature in database
GPG key ID: 6DB88737C11F5A48

View file

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