From abb3920ac6b1e24d2f50faad2772e31ddabcb1c9 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 12 Mar 2014 16:54:14 -0400 Subject: [PATCH] addhw: Fix adding empty cdrom/floppy drive --- virtManager/addstorage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtManager/addstorage.py b/virtManager/addstorage.py index 68558c99e..2d15a57e6 100644 --- a/virtManager/addstorage.py +++ b/virtManager/addstorage.py @@ -324,11 +324,11 @@ class vmmAddStorage(vmmGObjectUI): if is_default: path = self._check_ideal_path(path, vmname, collidelist) - if not path and device != "disk": + if not path and device in ["disk", "lun"]: return self.err.val_err(_("A storage path must be specified.")) disk = virtinst.VirtualDisk(conn) - disk.path = path + disk.path = path or None disk.read_only = readonly disk.device = device disk.set_create_storage(size=size, sparse=sparse,