mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Don't forbid object names that are only all numbers (bz 1067127)
Just let libvirt error, since in the case of things like storage pools this is totally legitimate.
This commit is contained in:
parent
87c2ff1a14
commit
3efbefe91a
@ -140,10 +140,6 @@ def validate_uuid(val):
|
|||||||
|
|
||||||
|
|
||||||
def validate_name(name_type, val):
|
def validate_name(name_type, val):
|
||||||
if re.match("^[0-9]+$", val):
|
|
||||||
raise ValueError(_("%s name can not be only numeric characters") %
|
|
||||||
name_type)
|
|
||||||
|
|
||||||
# Rather than try and match libvirt's regex, just forbid things we
|
# Rather than try and match libvirt's regex, just forbid things we
|
||||||
# know don't work
|
# know don't work
|
||||||
forbid = [" "]
|
forbid = [" "]
|
||||||
|
Loading…
Reference in New Issue
Block a user