dom0/core: allow '_' in VM name

This commit is contained in:
Marek Marczykowski 2012-09-14 12:57:25 +02:00
parent 614573d0a3
commit 3ecc031603

View File

@ -486,7 +486,7 @@ class QubesVm(object):
return False
def verify_name(self, name):
return re.match(r"^[a-zA-Z0-9-]*$", name) is not None
return re.match(r"^[a-zA-Z0-9_-]*$", name) is not None
def pre_rename(self, new_name):
pass