mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
addhw: Allow specifying empty cdrom/floppy devices
This commit is contained in:
parent
97d3b46b77
commit
101d328ed6
@ -607,7 +607,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
else:
|
||||
path = self.widget("config-storage-entry").get_text()
|
||||
|
||||
return (path, size, sparse)
|
||||
return (path or None, size, sparse)
|
||||
|
||||
def get_config_disk_target(self):
|
||||
target = self.widget("config-storage-devtype")
|
||||
@ -1262,9 +1262,6 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
if do_use:
|
||||
diskpath = ideal
|
||||
|
||||
if not diskpath:
|
||||
return self.err.val_err(_("A storage path must be specified."))
|
||||
|
||||
disk = virtinst.VirtualDisk(conn=self.conn.vmm,
|
||||
path=diskpath,
|
||||
size=disksize,
|
||||
|
Loading…
x
Reference in New Issue
Block a user