Merge lp:~dan-prince/glance/purge_props into lp:~glance-coresec/glance/cactus-trunk
Proposed by
Dan Prince
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jay Pipes | ||||
Approved revision: | 100 | ||||
Merged at revision: | 100 | ||||
Proposed branch: | lp:~dan-prince/glance/purge_props | ||||
Merge into: | lp:~glance-coresec/glance/cactus-trunk | ||||
Diff against target: |
189 lines (+42/-29) 6 files modified
glance/registry/__init__.py (+2/-2) glance/registry/client.py (+5/-2) glance/registry/db/api.py (+15/-12) glance/registry/server.py (+6/-1) glance/server.py (+2/-1) tests/stubs.py (+12/-11) |
||||
To merge this branch: | bzr merge lp:~dan-prince/glance/purge_props | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes (community) | Approve | ||
Review via email: mp+55351@code.launchpad.net |
Description of the change
Updates to the Registry API such that only external requests to
update image properties purge existing properties. The update_image
call now contains an extra flag to purge_props which is set to
True for external requests but False internally.
This resolves with revision 99 where Glance API incidentally deleted
image metadata when uploading new images.
To post a comment you must log in.
merging this as a hotfix. we can discuss a long-term solution later.