From bae4e3ecd9bd8178ebe087847e30792a642507d0 Mon Sep 17 00:00:00 2001 From: "Caleb St. John" <30729806+yocalebo@users.noreply.github.com> Date: Tue, 3 Dec 2024 07:42:27 -0500 Subject: [PATCH] fix H30 drive identification (#15082) --- .../middlewared/plugins/enclosure_/sysfs_disks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/plugins/enclosure_/sysfs_disks.py b/src/middlewared/middlewared/plugins/enclosure_/sysfs_disks.py index cc070d89dab9..1d6c21c7d84f 100644 --- a/src/middlewared/middlewared/plugins/enclosure_/sysfs_disks.py +++ b/src/middlewared/middlewared/plugins/enclosure_/sysfs_disks.py @@ -99,7 +99,11 @@ def toggle_enclosure_slot_identifier( slot_errmsg = f"Slot: {slot!r} not found" slot = str(slot) - if model in (ControllerModels.H10.value, ControllerModels.H20.value): + if model in ( + ControllerModels.H10.value, + ControllerModels.H20.value, + ControllerModels.H30.value, + ): # kernel bug for hseries where the slot files report duplicate numbers # between the array device slots so until that can be fixed, we have to # use the directory name where the slot file exists. Only applies to 4