From 7212d81a08b2c2e02e30f69226d3ddd6ba9f7b33 Mon Sep 17 00:00:00 2001 From: hantienEdgecore Date: Tue, 22 Nov 2022 15:58:26 +0800 Subject: [PATCH] [ssd_generic]Fix ssd no model information --- sonic_platform_base/sonic_ssd/ssd_generic.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonic_platform_base/sonic_ssd/ssd_generic.py b/sonic_platform_base/sonic_ssd/ssd_generic.py index 956b8df11..2b4efbdf6 100644 --- a/sonic_platform_base/sonic_ssd/ssd_generic.py +++ b/sonic_platform_base/sonic_ssd/ssd_generic.py @@ -140,8 +140,7 @@ def fetch_vendor_ssd_info(self, diskdev, model): self.vendor_ssd_info = self._execute_shell(self.vendor_ssd_utility[model]["utility"].format(diskdev)) def parse_vendor_ssd_info(self, model): - if self.vendor_ssd_info: - self.vendor_ssd_utility[model]["parser"]() + self.vendor_ssd_utility[model]["parser"]() def get_health(self): """