addhardware: Remove IDE from list while adding controllers

Libvirt only supports built-in IDE controller so far, There is no
any case that needs us manually add an IDE controller, So remove
it from the controller list.

Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
Lin Ma 2017-11-23 10:58:06 +08:00 committed by Cole Robinson
parent f3f9dd6b73
commit 08b2b808bd

View File

@ -886,7 +886,8 @@ class vmmAddHardware(vmmGObjectUI):
model.clear()
for t in VirtualController.TYPES:
if t == VirtualController.TYPE_PCI:
if t in [VirtualController.TYPE_IDE,
VirtualController.TYPE_PCI]:
continue
model.append([t, VirtualController.pretty_type(t)])