dom0/drive: allow dashes in VM name (#19 pro)

This commit is contained in:
Marek Marczykowski 2012-03-26 20:36:06 +02:00
parent 84e6cacec6
commit 5e1a9c203f

View File

@ -2227,7 +2227,7 @@ class QubesHVm(QubesVm):
elif drive_path.startswith("cdrom:"):
type_mode = ":cdrom,r"
drive_path = drive_path[6:]
backend_split = re.match(r"^([a-zA-Z0-9]*):(.*)", drive_path)
backend_split = re.match(r"^([a-zA-Z0-9-]*):(.*)", drive_path)
if backend_split:
backend_domain = "," + backend_split.group(1)
drive_path = backend_split.group(2)