Merge lp:~mirantis/glance/body_file-fix into lp:~hudson-openstack/glance/trunk
Proposed by
Yuriy Taraday
Status: | Merged |
---|---|
Approved by: | Brian Waldon |
Approved revision: | 143 |
Merged at revision: | 145 |
Proposed branch: | lp:~mirantis/glance/body_file-fix |
Merge into: | lp:~hudson-openstack/glance/trunk |
Diff against target: |
20 lines (+2/-1) 2 files modified
Authors (+1/-0) glance/api/v1/images.py (+1/-1) |
To merge this branch: | bzr merge lp:~mirantis/glance/body_file-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brian Waldon (community) | Approve | ||
Jay Pipes (community) | Approve | ||
Review via email: mp+65670@code.launchpad.net |
Description of the change
Switch image_data to be a file-like object instead of bare string in image creating and updating
Without this Glance loads all image into memory, then copies it one time, then writes it to temp file, and only after all this copies image to target repository.
To post a comment you must log in.
Looks good, Yuriy.