Skip to content

Commit

Permalink
Enclosure map regex string needs to be a raw string to stop collision…
Browse files Browse the repository at this point in the history
… of string and regex escaping
  • Loading branch information
darkfiberiru committed Jun 17, 2021
1 parent 1b3741c commit de17ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/enclosure_/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
]),
]),
ProductMapping(re.compile(r"(TRUE|FREE)NAS-MINI-3.0-X$"), [
VersionMapping(re.compile("1\.0"), [
VersionMapping(re.compile(r"1\.0"), [
MappingSlot(1, 0, False),
MappingSlot(1, 1, False),
MappingSlot(1, 3, False),
Expand Down

0 comments on commit de17ad5

Please sign in to comment.