From a18e60c4aa1801147ce80581f19aefc2b4b606cf Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Fri, 11 Nov 2011 17:53:54 +0000 Subject: [PATCH] Fix handle get_from_backend returning a tuple. Fixes bug 889182 Change-Id: Ieecb4cc5653be6c4e4004bf8c8d95c8d287fb7ae --- glance/image_cache/prefetcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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):