dom0/core: allow '_' in VM name
This commit is contained in:
parent
900a21db72
commit
2444603ef5
@ -495,7 +495,7 @@ class QubesVm(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def verify_name(self, name):
|
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):
|
def pre_rename(self, new_name):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user