[device/celestica]:Fix failed test case of Haliburton snmp (#10844)

This commit is contained in:
Taylor Cai 2022-05-26 00:06:50 +08:00 committed by GitHub
parent 0285bfe42e
commit 11f0bffe13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -234,7 +234,7 @@ class Psu(PsuBase):
Returns:
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):
"""

View File

@ -324,6 +324,5 @@ class Thermal(ThermalBase):
Returns:
A int value, 0 represent ASIC thermal, 1 represent CPU thermal info
"""
if self.postion == "cpu":
return 1
return 0
return self.index + 1