Merge pull request #248 from Solvik/fix/cle/inventory-crash-2

fix: HP inventory crash is some warnings
This commit is contained in:
Cyril Levis 2022-11-10 15:47:39 +01:00 committed by GitHub
commit 368d793704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,8 @@ def _parse_pd_output(lines):
line = line.strip()
if not line or line.startswith('Note:'):
continue
if 'cache' in line or 'reboot' in line:
continue
# Parses the Array the drives are in
if line.startswith('Array'):
current_array = line.split(None, 1)[1]