Skip to content

Commit

Permalink
[device/celestica]:Fix failed test case of Seastone snmp (#11430)
Browse files Browse the repository at this point in the history
* Update psu.py
* Update thermal.py
  • Loading branch information
cel-taylor authored Jul 27, 2022
1 parent 054db00 commit c0866d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def get_position_in_parent(self):
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):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ def get_position_in_parent(self):
"""
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

0 comments on commit c0866d6

Please sign in to comment.