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:
Kanagaraj Manickam 2015-12-21 12:13:58 +05:30 committed by Kanagaraj Manickam
parent db52df4633
commit 5e2a56917b
1 changed files with 0 additions and 2 deletions

View File

@ -59,9 +59,7 @@ class FaultWrapper(wsgi.Middleware):
'EntityNotFound': webob.exc.HTTPNotFound,
'NotFound': webob.exc.HTTPNotFound,
'ResourceActionNotSupported': webob.exc.HTTPBadRequest,
'ResourceNotFound': webob.exc.HTTPNotFound,
'InvalidGlobalResource': webob.exc.HTTPInternalServerError,
'SnapshotNotFound': webob.exc.HTTPNotFound,
'ResourceNotAvailable': webob.exc.HTTPNotFound,
'PhysicalResourceNameAmbiguity': webob.exc.HTTPBadRequest,
'InvalidTenant': webob.exc.HTTPForbidden,