Fix handle get_from_backend returning a tuple.
Fixes bug 889182 Change-Id: Ieecb4cc5653be6c4e4004bf8c8d95c8d287fb7ae
This commit is contained in:
parent
0a394707be
commit
a18e60c4aa
@ -56,10 +56,10 @@ class Prefetcher(object):
|
||||
logger.warn(_("No metadata found for image '%s'"), image_id)
|
||||
return False
|
||||
|
||||
chunks = get_from_backend(image_meta['location'],
|
||||
options=self.options)
|
||||
image_data, image_size = get_from_backend(
|
||||
image_meta['location'], options=self.options)
|
||||
logger.debug(_("Caching image '%s'"), image_id)
|
||||
self.cache.cache_image_iter(image_id, chunks)
|
||||
self.cache.cache_image_iter(image_id, image_data)
|
||||
return True
|
||||
|
||||
def run(self):
|
||||
|
Loading…
Reference in New Issue
Block a user