From 7d930551facf4a1ddad61cef42c144579f0eebad Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 18 Apr 2022 19:09:03 +0200 Subject: [PATCH] fix exit_status number --- ereuse_devicehub/parser/parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/parser/parser.py b/ereuse_devicehub/parser/parser.py index 95a0e86d..cac097af 100644 --- a/ereuse_devicehub/parser/parser.py +++ b/ereuse_devicehub/parser/parser.py @@ -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