[device/celestica]:Fix failed test case of Haliburton snmp (#10844)
This commit is contained in:
parent
455d44efea
commit
f5ecf1ee1c
@ -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):
|
||||
"""
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user