2012-02-03 16:47:45 +01:00
|
|
|
Index: virt-manager-0.9.1/src/virtManager/uihelpers.py
|
2011-08-05 22:38:31 +02:00
|
|
|
===================================================================
|
2012-02-03 16:47:45 +01:00
|
|
|
--- virt-manager-0.9.1.orig/src/virtManager/uihelpers.py
|
|
|
|
+++ virt-manager-0.9.1/src/virtManager/uihelpers.py
|
2011-11-08 14:40:25 +01:00
|
|
|
@@ -395,12 +395,12 @@ def build_storage_format_combo(vm, combo
|
2011-08-05 22:38:31 +02:00
|
|
|
combo.set_model(dev_model)
|
|
|
|
combo.set_text_column(0)
|
|
|
|
|
2011-09-20 17:08:57 +02:00
|
|
|
- formats = ["raw", "qcow2"]
|
|
|
|
- if vm.rhel6_defaults():
|
|
|
|
- formats.append("vmdk")
|
|
|
|
-
|
|
|
|
- for m in formats:
|
2011-08-05 22:38:31 +02:00
|
|
|
- dev_model.append([m])
|
2011-09-20 17:19:50 +02:00
|
|
|
+ if vm.conn.is_xen():
|
2011-08-05 22:38:31 +02:00
|
|
|
+ for m in ["raw", "qcow2", "vmdk"]:
|
|
|
|
+ dev_model.append([m])
|
|
|
|
+ else:
|
|
|
|
+ for m in ["raw", "qcow2", "qed", "vmdk"]:
|
|
|
|
+ dev_model.append([m])
|
|
|
|
|
|
|
|
combo.set_active(0)
|
|
|
|
|