Fix call to get connection

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=60
This commit is contained in:
Charles Arnold 2011-09-20 15:19:50 +00:00 committed by Git OBS Bridge
parent 304b81595d
commit ff10cf0380

View File

@ -12,7 +12,7 @@ Index: virt-manager-0.9.0/src/virtManager/uihelpers.py
-
- for m in formats:
- dev_model.append([m])
+ if vm.get_connection().is_xen():
+ if vm.conn.is_xen():
+ for m in ["raw", "qcow2", "vmdk"]:
+ dev_model.append([m])
+ else: