Skip to content

Commit

Permalink
parse the output from the beginning of the line (#451)
Browse files Browse the repository at this point in the history
Signed-off-by: Kebo Liu <kebol@nvidia.com>
Co-authored-by: Liat Grozovik <44433539+liat-grozovik@users.noreply.github.com>
  • Loading branch information
2 people authored and mssonicbld committed Apr 30, 2024
1 parent 11a3f7d commit b893c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_platform_base/sonic_ssd/ssd_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def parse_swissbit_info(self):
if temp_raw == NOT_AVAILABLE:
self.temperature = NOT_AVAILABLE
else:
self.temperature = temp_raw.split()[-3]
self.temperature = temp_raw.split()[8]

def fetch_vendor_ssd_info(self, diskdev, model):
self.vendor_ssd_info = self._execute_shell(self.vendor_ssd_utility[model]["utility"].format(diskdev))
Expand Down

0 comments on commit b893c95

Please sign in to comment.