Optimize the fault map for EntityNotFound
EntityNotFound exception is the base class for the exceptions SnapshotNotFound and ResourceNotFound. so this patch, remove the entris for these exceptions as it will be taken care by EntityNotFound. Change-Id: I824dc35ef358f0c7e8c344fa09740eebf7d09966
This commit is contained in:
parent
db52df4633
commit
5e2a56917b
@ -59,9 +59,7 @@ class FaultWrapper(wsgi.Middleware):
|
|||||||
'EntityNotFound': webob.exc.HTTPNotFound,
|
'EntityNotFound': webob.exc.HTTPNotFound,
|
||||||
'NotFound': webob.exc.HTTPNotFound,
|
'NotFound': webob.exc.HTTPNotFound,
|
||||||
'ResourceActionNotSupported': webob.exc.HTTPBadRequest,
|
'ResourceActionNotSupported': webob.exc.HTTPBadRequest,
|
||||||
'ResourceNotFound': webob.exc.HTTPNotFound,
|
|
||||||
'InvalidGlobalResource': webob.exc.HTTPInternalServerError,
|
'InvalidGlobalResource': webob.exc.HTTPInternalServerError,
|
||||||
'SnapshotNotFound': webob.exc.HTTPNotFound,
|
|
||||||
'ResourceNotAvailable': webob.exc.HTTPNotFound,
|
'ResourceNotAvailable': webob.exc.HTTPNotFound,
|
||||||
'PhysicalResourceNameAmbiguity': webob.exc.HTTPBadRequest,
|
'PhysicalResourceNameAmbiguity': webob.exc.HTTPBadRequest,
|
||||||
'InvalidTenant': webob.exc.HTTPForbidden,
|
'InvalidTenant': webob.exc.HTTPForbidden,
|
||||||
|
Loading…
Reference in New Issue
Block a user