virt-manager/5345682c-addstorage-remove-whitespace-for-storage-path.patch
Charles Arnold 51d9ace4b3 - Upstream bug fix
5345682c-addstorage-remove-whitespace-for-storage-path.patch 
- Add minimal detection for windows media
  virtinst-detect-windows-media.patch

- bnc#872543 - virt-manager: unable to install i386 SLES
  virtinst-detect-suse-distros.patch
- bnc#872517 - Error starting domain: internal error: libxenlight
  failed to create new domain '2k12r2'
  Dropping virtinst-keep-cdrom-media-attached.patch for libvirt fix

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=164
2014-04-10 23:19:20 +00:00

25 lines
1.0 KiB
Diff

Subject: addstorage: removing whitespace for storage path
From: Chen Hanxiao chenhanxiao@cn.fujitsu.com Wed Apr 9 23:33:00 2014 +0800
Date: Wed Apr 9 23:33:00 2014 +0800:
Git: e0215dec6104bd9899d7f59677a45af498c0fd65
virtinst util validate_name can't accept name
with whitespaces aroud it.
Remove it when getting text from UI.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Index: virt-manager-1.0.1/virtManager/addstorage.py
===================================================================
--- virt-manager-1.0.1.orig/virtManager/addstorage.py
+++ virt-manager-1.0.1/virtManager/addstorage.py
@@ -320,7 +320,7 @@ class vmmAddStorage(vmmGObjectUI):
if is_default:
path = self.get_default_path(vmname, collidelist)
else:
- path = self.widget("config-storage-entry").get_text()
+ path = self.widget("config-storage-entry").get_text().strip()
if is_default:
path = self._check_ideal_path(path, vmname, collidelist)