summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Waldon <brian.waldon@rackspace.com>2011-08-30 14:48:02 -0400
committerBrian Waldon <brian.waldon@rackspace.com>2011-08-30 14:48:02 -0400
commit980ae6aa2f3797e428beee6e383d8bd134175734 (patch)
treef8e8cab893b015e4b5a2e4f5ad66ae29162ed38f
parent2a2aa10316abe9135541198bddd4c189976eb2fd (diff)
yielding all the images
-rw-r--r--nova/image/glance.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py
index 9060f6a91..f2f246ba6 100644
--- a/nova/image/glance.py
+++ b/nova/image/glance.py
@@ -153,7 +153,8 @@ class GlanceImageService(service.BaseImageService):
except KeyError:
raise exception.ImagePaginationFailed()
- self._fetch_images(fetch_func, **kwargs)
+ for image in self._fetch_images(fetch_func, **kwargs):
+ yield image
def show(self, context, image_id):
"""Returns a dict with image data for the given opaque image id."""