Skip to content

Commit

Permalink
Fix AS7726 not showing serial number in 'show platform summary' (soni…
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzailBrcm committed Apr 8, 2022
1 parent 330d11a commit badc75f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def get_model(self):
"""
return self._eeprom.part_number_str()

def get_serial(self):
def get_service_tag(self):
"""
Retrieves the serial number of the chassis (Service tag)
Retrieves the service tag of the chassis
Returns:
string: Serial number of chassis
string: Sevice tag of chassis
"""
return self._eeprom.serial_str()

Expand All @@ -123,7 +123,7 @@ def get_base_mac(self):
"""
return self._eeprom.base_mac_addr()

def get_serial_number(self):
def get_serial(self):
"""
Retrieves the hardware serial number for the chassis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_speed(self):
if output['status'].isalpha():
return 0
else:
speed = int(output['status'])
speed = int(float(output['status']))

max_speed = int(self.plugin_data['PSU']['PSU_FAN_MAX_SPEED'])
speed_percentage = round((speed*100)/max_speed)
Expand Down

0 comments on commit badc75f

Please sign in to comment.