diff options
author | Cole Robinson <crobinso@redhat.com> | 2018-01-27 16:07:26 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2018-01-27 16:07:26 -0500 |
commit | ec8ee78d186d8c9607a8a8aaaaf63f4197eeed37 (patch) | |
tree | 24588176babc9566c698accbaecde2336a5f8850 | |
parent | 6712261510953f9c729624dded29bfffd32f88e6 (diff) | |
download | virt-manager-ec8ee78d186d8c9607a8a8aaaaf63f4197eeed37.tar.gz |
addhardware: Only add virtio-scsi if no other scsi controllers present
-rw-r--r-- | virtManager/addhardware.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py index 8274f0f3..863cb3cd 100644 --- a/virtManager/addhardware.py +++ b/virtManager/addhardware.py @@ -1489,7 +1489,9 @@ class vmmAddHardware(vmmGObjectUI): controller_model = None if (bus == "scsi" and self.vm.get_hv_type() in ["qemu", "kvm", "test"] and - not self.vm.xmlobj.os.is_pseries()): + not self.vm.xmlobj.os.is_pseries() and not + any([c.type == "scsi" + for c in self.vm.get_controller_devices()])): controller_model = "virtio-scsi" collidelist = [d.path for d in self.vm.get_disk_devices()] |