Skip to content

Commit

Permalink
Modify psu_serial_num to psu_mfr_serial
Browse files Browse the repository at this point in the history
  • Loading branch information
Jostar Yang committed Aug 17, 2021
1 parent 99c8cee commit 8672369
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import shlex
import subprocess
import logging

try:
from sonic_platform_base.component_base import ComponentBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#
#############################################################################

import logging

try:
from sonic_platform_base.fan_base import FanBase
from .helper import APIHelper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def get_serial(self):
Returns:
string: Serial number of device
"""
serial_path="{}{}".format(self.hwmon_path, 'psu_serial_num')
serial_path="{}{}".format(self.hwmon_path, 'psu_mfr_serial')
val=self._api_helper.read_txt_file(serial_path)
if val is None:
return "N/A"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,7 @@ def get_transceiver_info(self):

sfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
(offset + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
if sfp_dom_capability_raw is not None:
sfp_dom_capability_data = sfpi_obj.parse_dom_capability(
sfp_dom_capability_raw, 0)



transceiver_info_dict = dict.fromkeys(self.info_dict_keys, 'N/A')
compliance_code_dict = dict()
dom_capability_dict = dict()
Expand Down

0 comments on commit 8672369

Please sign in to comment.