[virt-tools-list] [virt-manager PATCH 4/9] urldetect: Add get_os_tree()

Fabiano Fidêncio fidencio at redhat.com
Tue Jul 16 15:14:27 UTC 2019


Let's add a method that allows the tree object to be retrieved from the
_DistroTree class.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 virtinst/install/urldetect.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/virtinst/install/urldetect.py b/virtinst/install/urldetect.py
index d2035fd7..12cec1b9 100644
--- a/virtinst/install/urldetect.py
+++ b/virtinst/install/urldetect.py
@@ -389,6 +389,12 @@ class _DistroTree(object):
         """
         return self.cache.libosinfo_mediaobj
 
+    def get_os_tree(self):
+        """
+        Return an OsTree wrapper around the detected libosinfo media object
+        """
+        return self.cache.libosinfo_treeobj
+
 
 class _FedoraDistro(_DistroTree):
     PRETTY_NAME = "Fedora"
-- 
2.21.0




More information about the virt-tools-list mailing list