mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
osdict: Add get_pre_installable_devices()
Let's add a new method to get the devices which are supported when taking advantage of a pre / post installable drivers. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
e59585b58b
commit
efb0220510
@ -732,6 +732,13 @@ class _OsVariant(object):
|
||||
|
||||
return self._get_drivers_location(post_inst_drivers)
|
||||
|
||||
def get_pre_installable_devices(self, arch):
|
||||
drivers = self._get_pre_installable_drivers(arch)
|
||||
devices = []
|
||||
for driver in drivers:
|
||||
devices += list(_OsinfoIter(driver.get_devices()))
|
||||
return devices
|
||||
|
||||
def supports_unattended_drivers(self, arch):
|
||||
if self._get_pre_installable_drivers(arch):
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user