From 0e60a250665bea56cbe6a6ed46bdd26833dccbe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 16 Jul 2019 17:14:25 +0200 Subject: [PATCH] osdict: Return a _OsTree instead of OsinfoTree when guessing an OS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Fabiano FidĂȘncio --- virtinst/osdict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 983f8e83e..3b71ac319 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -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): """