Adding backup resource to quota command

Adding handle for error 422

Change-Id: I4c60984ec7196f346da99769f21f7372a35b3f86
This commit is contained in:
Steve Leon
2013-04-10 18:13:31 -07:00
parent df4175ea5c
commit daba7cba30
2 changed files with 3 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ class ReddwarfHTTPClient(httplib2.Http):
else:
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)
return resp, body

View File

@@ -71,7 +71,8 @@ class QuotaCommands(common.AuthedCommandsBase):
params = ['id',
'instances',
'volumes']
'volumes',
'backups']
def list(self):
"""List all quotas for a tenant"""