mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
osdict: Use identify_media() instead of guess_os_from_media()
guess_os_from_media() has been deprecated for a while and identify_media() should be used instead. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
0aebc73793
commit
071c885e84
@ -207,10 +207,9 @@ class _OSDB(object):
|
||||
logging.debug("Error creating libosinfo media object: %s", str(e))
|
||||
return None
|
||||
|
||||
osobj, mediaobj = self._os_loader.get_db().guess_os_from_media(media)
|
||||
if not osobj:
|
||||
if not self._os_loader.get_db().identify_media(media):
|
||||
return None
|
||||
return osobj.get_short_id(), mediaobj
|
||||
return media.get_os().get_short_id(), media
|
||||
|
||||
def list_os(self):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user