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:
Cole Robinson 2014-02-25 14:54:06 -05:00
parent 87c2ff1a14
commit 3efbefe91a

View File

@ -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 = [" "]