summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2018-01-27 16:07:26 -0500
committerCole Robinson <crobinso@redhat.com>2018-01-27 16:07:26 -0500
commitec8ee78d186d8c9607a8a8aaaaf63f4197eeed37 (patch)
tree24588176babc9566c698accbaecde2336a5f8850
parent6712261510953f9c729624dded29bfffd32f88e6 (diff)
downloadvirt-manager-ec8ee78d186d8c9607a8a8aaaaf63f4197eeed37.tar.gz
addhardware: Only add virtio-scsi if no other scsi controllers present
-rw-r--r--virtManager/addhardware.py4
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()]