[virt-tools-list] [virt-manager PATCH 3/9] urldetect: Store _OsTree object
Fabiano Fidêncio
fidencio at redhat.com
Tue Jul 16 15:14:26 UTC 2019
As already done for _OsMedia, let's store the _OsTree object detected
as it'll be used later on in order to improve the installer script and
the kernel command line used for (tree based) unattended installations.
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
virtinst/install/urldetect.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/virtinst/install/urldetect.py b/virtinst/install/urldetect.py
index 7969ad46..d2035fd7 100644
--- a/virtinst/install/urldetect.py
+++ b/virtinst/install/urldetect.py
@@ -32,6 +32,7 @@ class _DistroCache(object):
self.libosinfo_os_variant = None
self.libosinfo_mediaobj = None
+ self.libosinfo_treeobj = None
def acquire_file_content(self, path):
if path not in self._filecache:
@@ -168,7 +169,8 @@ class _DistroCache(object):
ret = OSDB.guess_os_by_tree(self._fetcher.location)
if not ret:
return False
- self.libosinfo_os_variant = ret[0]
+
+ self.libosinfo_os_variant, self.libosinfo_treeobj = ret
self.treeinfo_matched = True
return True
--
2.21.0
More information about the virt-tools-list
mailing list