Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing unreachable line from stage() method
In stage() method of v2 api, _restore() is called after raising HTTPConflict exception, which won't be reachable in any case after the exception is raised. _restore() changes the image_status from 'uploading' to 'queued' and data staging would start from the beginning after new stage call with same image-id even though staging data has already been loaded to store. Hence it seems there is no point in keeping that _restore() incase of Duplicate exception is raised. Change-Id: I317587bc1ba6544b722a11ae217a5d1212c96ce2 Closes-Bug: 1732077
- Loading branch information