Skip to content

Commit

Permalink
[device/celestica]:Fix failed test case of Haliburton snmp (sonic-net…
Browse files Browse the repository at this point in the history
  • Loading branch information
cel-taylor authored May 25, 2022
1 parent 0285bfe commit 11f0bff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion device/celestica/x86_64-cel_e1031-r0/sonic_platform/psu.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,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 @@ -324,6 +324,5 @@ def get_position_in_parent(self):
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

0 comments on commit 11f0bff

Please sign in to comment.