mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
Revert "create: customize: Hide bus=virtio-scsi"
This reverts commit cca34185c0
.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
f81358b02d
commit
db9d851c96
@ -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"])
|
||||
|
||||
|
@ -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 "")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user