fix exit_status number

This commit is contained in:
Cayo Puigdefabregas 2022-04-18 19:09:03 +02:00
parent 7f6cac0242
commit 7d930551fa
1 changed files with 2 additions and 1 deletions

View File

@ -464,8 +464,9 @@ class ParseSnapshotLsHw:
def get_data_storage(self):
# import pdb; pdb.set_trace()
for sm in self.smart:
if sm.get('smartctl', {}).get('exit_status') != 0:
if sm.get('smartctl', {}).get('exit_status') == 1:
continue
model = sm.get('model_name')
manufacturer = None