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:
parent
5c494cef66
commit
0a3dcdd1b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue