Skip to content

Commit

Permalink
extend api/disk regex to include additional chars rockstor#1320
Browse files Browse the repository at this point in the history
As /dev/disk/by-id names contain colons, underscores and
dashes we need to include these in our extended disk_regex
to accommodate the move to by-id names in the Disk.name
db field.
  • Loading branch information
phillxnet committed May 22, 2016
1 parent 583e395 commit 5df33e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rockstor/storageadmin/urls/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from django.conf.urls import patterns, url
from storageadmin.views import (DiskListView, DiskDetailView, DiskSMARTDetailView)

disk_regex = '[A-Za-z0-9]+[A-Za-z0-9]*'
disk_regex = '[A-Za-z0-9]+[A-Za-z0-9:_-]*'

urlpatterns = patterns(
'',
Expand Down

0 comments on commit 5df33e1

Please sign in to comment.