mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
osdict: Return a _OsTree instead of OsinfoTree when guessing an OS
Instead of returning an OsinfoTree, let's be consistent with what we already do in guess_os_from_iso() and return our internal _OsTree object. This change doesn't affect any code as the only place using it doesn't care about the returned tree object. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
7fee11a29c
commit
0e60a25066
@ -263,7 +263,7 @@ class _OSDB(object):
|
||||
osobj, treeobj = self._os_loader.get_db().guess_os_from_tree(tree)
|
||||
if not osobj:
|
||||
return None # pragma: no cover
|
||||
return osobj.get_short_id(), treeobj
|
||||
return osobj.get_short_id(), _OsTree(treeobj)
|
||||
|
||||
def list_os(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user