[virt-tools-list] [PATCH 5/5] vmmFSDetails: fixed driver combo values
Cédric Bosdonnat
cbosdonnat at suse.com
Fri Jan 24 10:40:12 UTC 2014
For connections other than LXC or QEMU, there was no value, leading to
errors.
---
virtManager/fsdetails.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/virtManager/fsdetails.py b/virtManager/fsdetails.py
index 5fddfae..5f4fc10 100644
--- a/virtManager/fsdetails.py
+++ b/virtManager/fsdetails.py
@@ -113,7 +113,7 @@ class vmmFSDetails(vmmGObjectUI):
self.widget("fs-type-label").set_text(VirtualFilesystem.TYPE_MOUNT)
simple_store_set("fs-mode-combo", VirtualFilesystem.MODES)
- if self.conn.is_qemu():
+ if self.conn.is_qemu() or self.conn.is_test_conn():
simple_store_set("fs-driver-combo", [VirtualFilesystem.DRIVER_PATH,
VirtualFilesystem.DRIVER_HANDLE,
VirtualFilesystem.DRIVER_DEFAULT])
@@ -121,6 +121,8 @@ class vmmFSDetails(vmmGObjectUI):
simple_store_set("fs-driver-combo", [VirtualFilesystem.DRIVER_LOOP,
VirtualFilesystem.DRIVER_NBD,
VirtualFilesystem.DRIVER_DEFAULT])
+ else:
+ simple_store_set("fs-driver-combo", [VirtualFilesystem.DRIVER_DEFAULT])
simple_store_set("fs-format-combo", StorageVolume.ALL_FORMATS, capitalize = False),
simple_store_set("fs-wrpolicy-combo", VirtualFilesystem.WRPOLICIES)
self.show_pair_combo("fs-type", self.conn.is_openvz() or self.conn.is_lxc())
--
1.8.5.2
More information about the virt-tools-list
mailing list