diff --git a/glance/image_cache/prefetcher.py b/glance/image_cache/prefetcher.py index dbce857ed7..9b94ec9b1f 100644 --- a/glance/image_cache/prefetcher.py +++ b/glance/image_cache/prefetcher.py @@ -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):