[virt-tools-list] [PATCH virt-manager 09/10] guest: Don't exclude redirected devices

Marc Hartmayer mhartmay at linux.ibm.com
Wed Feb 6 09:55:42 UTC 2019


Don't exclude redirected devices since they're also bootable. They
won't clutter the UI of virt-manager as we're excluding them
explicitly for the UI in the `get_bootable_devices` method defined in
virtManager/domain.py.

Signed-off-by: Marc Hartmayer <mhartmay at linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>
---
 virtinst/guest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virtinst/guest.py b/virtinst/guest.py
index 5104087c62d2..0ea99d3343da 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -354,7 +354,7 @@ class Guest(XMLBuilder):
 
     def _get_device_boot_order(self):
         order = []
-        for dev in self.get_bootable_devices(exclude_redirdev=True):
+        for dev in self.get_bootable_devices():
             if not dev.boot.order:
                 continue
             order.append((dev.get_xml_id(), dev.boot.order))
@@ -382,7 +382,7 @@ class Guest(XMLBuilder):
             dev.boot.order = None
 
         dev_map = dict((dev.get_xml_id(), dev) for dev in
-                       self.get_bootable_devices(exclude_redirdev=True))
+                       self.get_bootable_devices())
         for boot_idx, dev_xml_id in enumerate(boot_order, 1):
             try:
                 dev_map[dev_xml_id].boot.order = boot_idx
-- 
2.17.0




More information about the virt-tools-list mailing list