Merge lp:~rackspace-titan/nova/fix_list_v11_snapshot_images into lp:~hudson-openstack/nova/trunk
Proposed by
Dan Prince
Status: | Merged |
---|---|
Approved by: | Brian Waldon |
Approved revision: | 1533 |
Merged at revision: | 1570 |
Proposed branch: | lp:~rackspace-titan/nova/fix_list_v11_snapshot_images |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
313 lines (+73/-57) 4 files modified
nova/api/openstack/common.py (+5/-19) nova/api/openstack/views/images.py (+10/-0) nova/tests/api/openstack/test_common.py (+33/-13) nova/tests/api/openstack/test_images.py (+25/-25) |
To merge this branch: | bzr merge lp:~rackspace-titan/nova/fix_list_v11_snapshot_images |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brian Waldon (community) | Approve | ||
Brian Lamar (community) | Approve | ||
Review via email: mp+74285@code.launchpad.net |
Description of the change
Fixes an issue where 'invalid literal for int' would occur when listing images after making a v1.1 server snapshot (with a UUID).
v1.1 image id's are now treated as strings (not integer ID's). The v1.0 API still tries to treat image id's as integers but doesn't fail miserably if they are uuid's either.
This should pave the way for image ID's as uuids and more closely matches the v1.1 spec with regards to images and the server refs they contain.
To post a comment you must log in.
36 + return urlparse. urlsplit( "%s" % href).path. split(' /')[-1]
Good stuff, I actually like this strategy much better than the one I implemented/ advocated for which first attempts to cast to an integer and then tries to parse a URL.
Thanks!