Revert "create: customize: Hide bus=virtio-scsi"

This reverts commit cca34185c0.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2015-08-03 18:52:06 +02:00 committed by Giuseppe Scrivano
parent f81358b02d
commit db9d851c96
2 changed files with 3 additions and 7 deletions

View File

@ -708,7 +708,7 @@ class vmmAddHardware(vmmGObjectUI):
combo.set_active(-1)
@staticmethod
def populate_disk_bus_combo(vm, devtype, model, do_virtio_scsi=True):
def populate_disk_bus_combo(vm, devtype, model):
rows = []
if vm.is_hvm():
if not vm.get_xmlobj().os.is_q35():
@ -723,8 +723,7 @@ class vmmAddHardware(vmmGObjectUI):
if vm.get_hv_type() in ["qemu", "kvm", "test"]:
rows.append(["sd", "SD"])
rows.append(["virtio", "VirtIO"])
if do_virtio_scsi:
rows.append(["virtio-scsi", "VirtIO SCSI"])
rows.append(["virtio-scsi", "VirtIO SCSI"])
if vm.xmlobj.os.is_pseries():
rows.append(["spapr-vscsi", "sPAPR-vSCSI"])

View File

@ -2757,11 +2757,8 @@ class vmmDetails(vmmGObjectUI):
self.widget("disk-format").get_child().set_text(driver_type)
self.widget("disk-format-warn").hide()
# skip virtio-scsi since we don't handle it correctly yet, need
# to duplicate the addhw logic
vmmAddHardware.populate_disk_bus_combo(self.vm, devtype,
self.widget("disk-bus").get_model(),
do_virtio_scsi=False)
self.widget("disk-bus").get_model())
uiutil.set_list_selection(self.widget("disk-bus"), bus)
self.widget("disk-serial").set_text(serial or "")