12870dd68e
* Convert to gtkbuilder: UI can now be editted with modern glade tool * virt-manager no longer runs on RHEL5, but can manage a remote RHEL5 host * Option to configure spapr net and disk devices for pseries (Li Zhang) * Many bug fixes and improvements OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=100
25 lines
784 B
Diff
25 lines
784 B
Diff
Index: virt-manager-0.9.3/src/virtManager/uihelpers.py
|
|
===================================================================
|
|
--- virt-manager-0.9.3.orig/src/virtManager/uihelpers.py
|
|
+++ virt-manager-0.9.3/src/virtManager/uihelpers.py
|
|
@@ -398,13 +398,12 @@ def build_storage_format_combo(vm, combo
|
|
combo.set_model(dev_model)
|
|
combo.set_text_column(0)
|
|
|
|
- formats = ["raw", "qcow2", "qed"]
|
|
- if vm.rhel6_defaults():
|
|
- formats.append("vmdk")
|
|
- formats.append("vdi")
|
|
-
|
|
- for m in formats:
|
|
- dev_model.append([m])
|
|
+ if vm.conn.is_xen():
|
|
+ for m in ["raw", "qcow2", "vmdk"]:
|
|
+ dev_model.append([m])
|
|
+ else:
|
|
+ for m in ["raw", "qcow2", "qed", "vmdk", "vdi"]:
|
|
+ dev_model.append([m])
|
|
|
|
combo.set_active(0)
|
|
|