674941bbf7
53022930-lxc-connection-fix.patch 530229cb-non-x86-kvm-creation-fix.patch 53023f56-dont-alter-caps-machine-list-on-create.patch 53030858-generate_target-fix.patch 53037798-not-customizing-generate_target-fix.patch 53047532-dont-get-duplicated-disks.patch 53047595-calculate-disk-bus-properly.patch 530987c4-disk-bus-calculation-fix.patch 530c021c-attempt-empty-path-on-virDomainBlockStats.patch 530cd6ab-log-broken-xml.patch 530cf4de-allow-numbered-object-names.patch 530cfa5e-close-connection-on-tick-failure-fix.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=146
24 lines
806 B
Diff
24 lines
806 B
Diff
Subject: Don't forbid object names that are only all numbers (bz 1067127)
|
|
From: Cole Robinson crobinso@redhat.com Tue Feb 25 14:54:06 2014 -0500
|
|
Date: Tue Feb 25 14:54:06 2014 -0500:
|
|
Git: 3efbefe91a1ec23cbcf3d4f5a72a02fab87daa83
|
|
|
|
Just let libvirt error, since in the case of things like storage pools
|
|
this is totally legitimate.
|
|
|
|
diff --git a/virtinst/util.py b/virtinst/util.py
|
|
index 31ccd38..2fe00d3 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 = [" "]
|