diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-12 16:54:14 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2014-03-12 16:54:14 -0400 |
commit | abb3920ac6b1e24d2f50faad2772e31ddabcb1c9 (patch) | |
tree | 2f0abe16c62fb690b5bf3e9adf6d01534837a1a4 | |
parent | d2ad2bcf942cec5836b576a76130a0253290e83a (diff) | |
download | virt-manager-abb3920ac6b1e24d2f50faad2772e31ddabcb1c9.tar.gz |
addhw: Fix adding empty cdrom/floppy drive
-rw-r--r-- | virtManager/addstorage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virtManager/addstorage.py b/virtManager/addstorage.py index 68558c99..2d15a57e 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, |