installertreemedia: Add get_os_tree()

Let's allow to get the tree object from InstallerTreeMedia class.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
Fabiano Fidêncio 2019-07-16 17:14:29 +02:00 committed by Cole Robinson
parent 5c494cef66
commit 0a3dcdd1b9
1 changed files with 5 additions and 0 deletions

View File

@ -308,6 +308,11 @@ class InstallerTreeMedia(object):
cache = self._get_cached_data(guest, fetcher)
return cache.os_media
def get_os_tree(self, guest, meter):
fetcher = self._get_fetcher(guest, meter)
cache = self._get_cached_data(guest, fetcher)
return cache.os_tree
def requires_internet(self, guest, meter):
if self._media_type in [MEDIA_URL, MEDIA_DIR]:
return True