summaryrefslogtreecommitdiff
path: root/virtinst/osdict.py
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2019-07-16 17:14:24 +0200
committerCole Robinson <crobinso@redhat.com>2019-07-16 16:54:29 -0400
commit7fee11a29c6cd4e001d9fb721210b2b5d82771a3 (patch)
tree8993bd0137011c557d7c7e76b1a3691a0bde1671 /virtinst/osdict.py
parentf4d62660f1e9141d551374ffeac0548a2505d390 (diff)
downloadvirt-manager-7fee11a29c6cd4e001d9fb721210b2b5d82771a3.tar.gz
osdict: Add _OsTree() class
Similarly to the _OsMedia() class, let's create a _OsTree() class which, at least for now, has only one method that returns the OsinfoTree object. Although this class & method are not extrictly needed, having them makes the code more consistent. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'virtinst/osdict.py')
-rw-r--r--virtinst/osdict.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index b0442527..983f8e83 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -643,3 +643,11 @@ class _OsMedia(object):
def get_osinfo_media(self):
return self._media
+
+
+class _OsTree(object):
+ def __init__(self, osinfo_tree):
+ self._tree = osinfo_tree
+
+ def get_osinfo_tree(self):
+ return self._tree