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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
Reviewed-by: Boris Fiuczynski <fiuczy@xxxxxxxxxxxxx>
---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux