-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap quota controller with resource.Resource
Fixes bug 1116137 Currently the format of error message returned by quota extension was different with quantum other resource. Other resource will return as json(eg, '{"QuantumError": "error message"}'). But quota extension only return messages without any format. 'quantum.api.v2.resource.Resource' provider error messages processing. So wrap quota controller with it. By the way, fix some small stuff: * Use specific exception 'QuotaTenantNotFound' instead of generic exception. * Correct error message. * Use attribute mapping checking the request body. Change-Id: I71261198aa79e9ed8e0ae672de32552abdbf45c1
- Loading branch information
Showing
3 changed files
with
125 additions
and
113 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
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