summaryrefslogtreecommitdiff
path: root/virtinst
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2014-02-25 14:54:06 -0500
committerCole Robinson <crobinso@redhat.com>2014-02-25 14:54:06 -0500
commit3efbefe91a1ec23cbcf3d4f5a72a02fab87daa83 (patch)
tree6e69209370cd58cdf0c3d473f9d44e3192c2a499 /virtinst
parent87c2ff1a14f3a78648c8a17cfa72e83098763ec8 (diff)
downloadvirt-manager-3efbefe91a1ec23cbcf3d4f5a72a02fab87daa83.tar.gz
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.
Diffstat (limited to 'virtinst')
-rw-r--r--virtinst/util.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/virtinst/util.py b/virtinst/util.py
index 31ccd385..2fe00d3b 100644
--- a/virtinst/util.py
+++ b/virtinst/util.py
@@ -140,10 +140,6 @@ def validate_uuid(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
# know don't work
forbid = [" "]