From de493c90aa44aa8d8d4788b40bb792e5cfd76b18 Mon Sep 17 00:00:00 2001 From: Nick 'darkfiberiru' Wolff Date: Thu, 8 Jul 2021 14:43:59 -0400 Subject: [PATCH] Mini-E+ enclosure fix --- .../middlewared/plugins/enclosure_/map.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/plugins/enclosure_/map.py b/src/middlewared/middlewared/plugins/enclosure_/map.py index 143e2d6fcd9f..3f8b5f0f1616 100644 --- a/src/middlewared/middlewared/plugins/enclosure_/map.py +++ b/src/middlewared/middlewared/plugins/enclosure_/map.py @@ -9,7 +9,7 @@ MAPPINGS = [ - ProductMapping(re.compile(r"(TRUE|FREE)NAS-MINI-3.0-E\+?$"), [ + ProductMapping(re.compile(r"(TRUE|FREE)NAS-MINI-3.0-E$"), [ VersionMapping(re.compile(".*"), [ MappingSlot(0, 0, False), MappingSlot(0, 1, False), @@ -19,6 +19,16 @@ MappingSlot(0, 4, False), ]), ]), + ProductMapping(re.compile(r"(TRUE|FREE)NAS-MINI-3.0-E\+$"), [ + VersionMapping(re.compile(".*"), [ + MappingSlot(0, 0, False), + MappingSlot(0, 1, False), + MappingSlot(0, 2, False), + MappingSlot(0, 3, False), + MappingSlot(0, 0, False), + MappingSlot(0, 1, False), + ]), + ]), ProductMapping(re.compile(r"(TRUE|FREE)NAS-MINI-3.0-X$"), [ VersionMapping(re.compile(r"1\.0"), [ MappingSlot(1, 0, False),