From a3c939b9c64481e381360dfc2b35fcd399efa177 Mon Sep 17 00:00:00 2001 From: "Caleb St. John" <30729806+yocalebo@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:50:44 -0400 Subject: [PATCH] fix ES24 enclosure mgmt (#14805) --- .../middlewared/plugins/enclosure_/enclosure_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/plugins/enclosure_/enclosure_class.py b/src/middlewared/middlewared/plugins/enclosure_/enclosure_class.py index 1afcf21510fa5..65c48e1cf92d9 100644 --- a/src/middlewared/middlewared/plugins/enclosure_/enclosure_class.py +++ b/src/middlewared/middlewared/plugins/enclosure_/enclosure_class.py @@ -179,7 +179,7 @@ def _get_model_and_controller(self): case 'CELESTIC_X2012' | 'CELESTIC_X2012-MT': self.model = JbodModels.ES12.value self.controller = False - case 'ECStream_4024J' | 'iX_4024J': + case x if x.startswith(('ECStream_4024J', 'iX_4024J')): self.model = JbodModels.ES24.value self.controller = False case 'ECStream_2024Jp' | 'ECStream_2024Js' | 'iX_2024Jp' | 'iX_2024Js':