Adding backup resource to quota command
Adding handle for error 422 Change-Id: I4c60984ec7196f346da99769f21f7372a35b3f86
This commit is contained in:
		| @@ -184,7 +184,7 @@ class ReddwarfHTTPClient(httplib2.Http): | |||||||
|         else: |         else: | ||||||
|             body = None |             body = None | ||||||
|  |  | ||||||
|         if resp.status in (400, 401, 403, 404, 408, 409, 413, 500, 501): |         if resp.status in (400, 401, 403, 404, 408, 409, 413, 422, 500, 501): | ||||||
|             raise exceptions.from_response(resp, body) |             raise exceptions.from_response(resp, body) | ||||||
|  |  | ||||||
|         return resp, body |         return resp, body | ||||||
|   | |||||||
| @@ -71,7 +71,8 @@ class QuotaCommands(common.AuthedCommandsBase): | |||||||
|  |  | ||||||
|     params = ['id', |     params = ['id', | ||||||
|               'instances', |               'instances', | ||||||
|               'volumes'] |               'volumes', | ||||||
|  |               'backups'] | ||||||
|  |  | ||||||
|     def list(self): |     def list(self): | ||||||
|         """List all quotas for a tenant""" |         """List all quotas for a tenant""" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Steve Leon
					Steve Leon