Merge lp:~dan-prince/nova/fix_image_id_s3 into lp:~hudson-openstack/nova/trunk

Proposed by Sandy Walsh
Status: Merged
Approved by: Devin Carlen
Approved revision: 625
Merged at revision: 624
Proposed branch: lp:~dan-prince/nova/fix_image_id_s3
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 33 lines (+3/-2)
2 files modified
Authors (+1/-0)
nova/image/s3.py (+2/-2)
To merge this branch: bzr merge lp:~dan-prince/nova/fix_image_id_s3
Reviewer Review Type Date Requested Status
Devin Carlen (community) Approve
Vish Ishaya (community) Approve
Ryan Lucio (community) Approve
Sandy Walsh (community) Approve
Review via email: mp+47589@code.launchpad.net

Description of the change

Fixes a stupid mistake I made when I moved this method from a module into a class.

Thanks Dan for spotting it.

To post a comment you must log in.
Revision history for this message
Sandy Walsh (sandy-walsh) wrote :

lgtm

review: Approve
Revision history for this message
Ryan Lucio (rlucio) wrote :

The fix looks correct and works for me on my bzr623 based deployment.

review: Approve
Revision history for this message
Vish Ishaya (vishvananda) wrote :

lgtm

review: Approve
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :
Download full text (20.6 KiB)

The attempt to merge lp:~dan-prince/nova/fix_image_id_s3 into lp:nova failed. Below is the output from the failed tests.

AdminAPITest
    test_admin_disabled ok
    test_admin_enabled ok
APITest
    test_exceptions_are_converted_to_faults ok
Test
    test_authorize_token ok
    test_authorize_user ok
    test_bad_token ok
    test_bad_user ok
    test_no_user ok
    test_token_expiry ok
TestLimiter
    test_authorize_token ok
TestFaults
    test_fault_parts ok
    test_raise ok
    test_retry_header ok
FlavorsTest
    test_get_flavor_by_id ok
    test_get_flavor_list ok
GlanceImageServiceTest
    test_create ok
    test_create_and_show_non_existing_image ok
    test_delete ok
    test_update ok
ImageControllerWithGlanceServiceTest
    test_get_image_details ok
    test_get_image_index ok
LocalImageServiceTest
    test_create ok
    test_create_and_show_non_existing_image ok
    test_delete ok
    test_update ok
LimiterTest
    test_minute ok
    test_one_per_period ok
    test_second ok
    test_users_get_separate_buckets ok
    test_we_can_go_indefinitely_if_we_spread_out_requests ok
WSGIAppProxyTest
    test_200 ok
    test_403 ok
    test_failure ok
WSGIAppTest
    test_escaping ok
    test_good_urls ok
    test_invalid_methods ok
    test_invalid_urls ok
    test_response_to_delays ok
ServersTest
    test_create_backup_schedules ok
    test_create_instance ok
    test_delete_backup_schedules ok
    test_delete_server_instance ok
    test_get_all_server_details ok
 ...

lp:~dan-prince/nova/fix_image_id_s3 updated
625. By Dan Prince

Add dan.prince to Authors.

Revision history for this message
Devin Carlen (devcamcar) wrote :

approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Authors'
2--- Authors 2011-01-26 00:09:08 +0000
3+++ Authors 2011-01-26 23:41:42 +0000
4@@ -8,6 +8,7 @@
5 Chris Behrens <cbehrens@codestud.com>
6 Cory Wright <corywright@gmail.com>
7 David Pravec <David.Pravec@danix.org>
8+Dan Prince <dan.prince@rackspace.com>
9 Dean Troyer <dtroyer@gmail.com>
10 Devin Carlen <devin.carlen@gmail.com>
11 Ed Leafe <ed@leafe.com>
12
13=== modified file 'nova/image/s3.py'
14--- nova/image/s3.py 2011-01-25 21:06:05 +0000
15+++ nova/image/s3.py 2011-01-26 23:41:42 +0000
16@@ -65,7 +65,7 @@
17 'image_id': image_id}))
18 return image_id
19
20- def _fix_image_id(images):
21+ def _fix_image_id(self, images):
22 """S3 has imageId but OpenStack wants id"""
23 for image in images:
24 if 'imageId' in image:
25@@ -79,7 +79,7 @@
26 response = self._conn(context).make_request(
27 method='GET',
28 bucket='_images')
29- return _fix_image_id(json.loads(response.read()))
30+ return self._fix_image_id(json.loads(response.read()))
31
32 def show(self, context, image_id):
33 """return a image object if the context has permissions"""