File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
device/accton/x86_64-accton_as4630_54pe-r0/sonic_platform Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ def get_position_in_parent(self):
271
271
integer: The 1-based relative physical position in parent device
272
272
or -1 if cannot determine the position
273
273
"""
274
- return (self .fan_tray_index + 1 ) \
274
+ return (self .fan_index + 1 ) \
275
275
if not self .is_psu_fan else (self .psu_index + 1 )
276
276
277
277
def is_replaceable (self ):
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ def get_position_in_parent(self):
225
225
Returns:
226
226
integer: The 1-based relative physical position in parent device or -1 if cannot determine the position
227
227
"""
228
- return - 1
228
+ return self . index + 1
229
229
230
230
def is_replaceable (self ):
231
231
"""
You can’t perform that action at this time.
0 commit comments