fix exit_status number
This commit is contained in:
parent
7f6cac0242
commit
7d930551fa
|
@ -464,8 +464,9 @@ class ParseSnapshotLsHw:
|
||||||
|
|
||||||
def get_data_storage(self):
|
def get_data_storage(self):
|
||||||
|
|
||||||
|
# import pdb; pdb.set_trace()
|
||||||
for sm in self.smart:
|
for sm in self.smart:
|
||||||
if sm.get('smartctl', {}).get('exit_status') != 0:
|
if sm.get('smartctl', {}).get('exit_status') == 1:
|
||||||
continue
|
continue
|
||||||
model = sm.get('model_name')
|
model = sm.get('model_name')
|
||||||
manufacturer = None
|
manufacturer = None
|
||||||
|
|
Reference in New Issue