Skip to content

Commit

Permalink
Fall back to generic info if vendor specific parser fails (#517)
Browse files Browse the repository at this point in the history
* Enables utility to fall back to generic info if vendor specific parser fails

* Added blank line after function end

* Changed per review
  • Loading branch information
assrinivasan authored and mssonicbld committed Dec 2, 2024
1 parent bbbbfc6 commit f8e0277
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sonic_platform_base/sonic_storage/ssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ def fetch_parse_info(self, diskdev):
if self.model:
vendor = self._parse_vendor()
if vendor:

self.fetch_vendor_ssd_info(diskdev, vendor)
try:
self.fetch_vendor_ssd_info(diskdev, vendor)
self.parse_vendor_ssd_info(vendor)
except Exception as ex:
self.log.log_error("{}".format(str(ex)))
Expand Down

0 comments on commit f8e0277

Please sign in to comment.