[device/celestica]:Fix failed test case of Seastone snmp (#11430)
* Update psu.py * Update thermal.py
This commit is contained in:
parent
054db00771
commit
c0866d68a4
@ -408,7 +408,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):
|
||||
"""
|
||||
|
@ -307,8 +307,6 @@ class Thermal(ThermalBase):
|
||||
"""
|
||||
Retrieves the thermal position information
|
||||
Returns:
|
||||
A int value, 0 represent ASIC thermal, 1 represent CPU thermal info
|
||||
A int value, index of thermal
|
||||
"""
|
||||
if self.postion == "cpu":
|
||||
return 1
|
||||
return 0
|
||||
return self.index + 1
|
||||
|
Loading…
Reference in New Issue
Block a user