Comment 2 for bug 708301

Revision history for this message
Dan Prince (dan-prince) wrote :

[dan.prince@dovetail nova-fix_image_id_s3]$ bzr diff -r623
=== modified file 'nova/image/s3.py'
--- nova/image/s3.py 2011-01-25 21:06:05 +0000
+++ nova/image/s3.py 2011-01-26 21:11:22 +0000
@@ -65,7 +65,7 @@
                                  'image_id': image_id}))
         return image_id

- def _fix_image_id(images):
+ def _fix_image_id(self, images):
         """S3 has imageId but OpenStack wants id"""
         for image in images:
             if 'imageId' in image:
@@ -79,7 +79,7 @@
         response = self._conn(context).make_request(
             method='GET',
             bucket='_images')
- return _fix_image_id(json.loads(response.read()))
+ return self._fix_image_id(json.loads(response.read()))

     def show(self, context, image_id):
         """return a image object if the context has permissions"""