Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AS7726 not showing serial number in 'show platform summary' (#10489) #10509

Merged
merged 1 commit into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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