From e2bd41304168dac279709dd949dbf9bac11cecae Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 7 Mar 2026 02:35:13 +0000 Subject: [PATCH] Support 'array device' type for Xyratex enclosures --- services/enclosure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/enclosure.py b/services/enclosure.py index d525e43..31bb9bf 100644 --- a/services/enclosure.py +++ b/services/enclosure.py @@ -118,7 +118,7 @@ def _parse_slot_number(entry: Path) -> int | None: # Bare numeric directory — check the type file to confirm it's a device slot if name.isdigit(): entry_type = _read_sysfs(entry / "type") - if entry_type not in ("device", "disk"): + if entry_type not in ("device", "disk", "array device"): return None # Prefer the 'slot' file for the actual slot number slot_val = _read_sysfs(entry / "slot")