Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise 404 when instance not found in admin_actions API
The pause/unpause/suspend/resume/reset_network admin action APIs do not handle the case where the instance in the request is not found and they raise HTTPUnprocessableEntity (code 422) instead. There are several other operations in the same API which handle the 404 case and translate it correctly, this patch cleans up the rest. Closes-Bug: #1204999 Change-Id: If54d6be99db55b4f99da11fe75c14bf21685e809
- Loading branch information
Matt Riedemann
committed
Aug 3, 2013
1 parent
2d86932
commit 43ad0a2
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters