fix exit_status number
This commit is contained in:
parent
7f6cac0242
commit
7d930551fa
|
@ -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
|
||||
|
|
Reference in New Issue