mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
addstorage: removing whitespace for storage path
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>
This commit is contained in:
parent
7594cef35f
commit
e0215dec61
@ -318,7 +318,7 @@ class vmmAddStorage(vmmGObjectUI):
|
|||||||
if is_default:
|
if is_default:
|
||||||
path = self.get_default_path(vmname, collidelist)
|
path = self.get_default_path(vmname, collidelist)
|
||||||
else:
|
else:
|
||||||
path = self.widget("config-storage-entry").get_text()
|
path = self.widget("config-storage-entry").get_text().strip()
|
||||||
|
|
||||||
if is_default:
|
if is_default:
|
||||||
path = self._check_ideal_path(path, vmname, collidelist)
|
path = self._check_ideal_path(path, vmname, collidelist)
|
||||||
|
Loading…
Reference in New Issue
Block a user