[device/celestica]:Fix failed test case of Seastone snmp (#11430)

* Update psu.py
* Update thermal.py
This commit is contained in:
Taylor Cai 2022-07-27 12:14:13 +08:00 committed by GitHub
parent 054db00771
commit c0866d68a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -408,7 +408,7 @@ class Psu(PsuBase):
Returns: Returns:
integer: The 1-based relative physical position in parent device or -1 if cannot determine the position integer: The 1-based relative physical position in parent device or -1 if cannot determine the position
""" """
return -1 return self.index + 1
def is_replaceable(self): def is_replaceable(self):
""" """

View File

@ -307,8 +307,6 @@ class Thermal(ThermalBase):
""" """
Retrieves the thermal position information Retrieves the thermal position information
Returns: Returns:
A int value, 0 represent ASIC thermal, 1 represent CPU thermal info A int value, index of thermal
""" """
if self.postion == "cpu": return self.index + 1
return 1
return 0