Merge "Add PhysicalResourceNameAmbiguity to exc mapping"

This commit is contained in:
Jenkins
2015-07-15 21:17:51 +00:00
committed by Gerrit Code Review

View File

@@ -63,6 +63,7 @@ class FaultWrapper(wsgi.Middleware):
'SnapshotNotFound': webob.exc.HTTPNotFound,
'ResourceNotAvailable': webob.exc.HTTPNotFound,
'PhysicalResourceNotFound': webob.exc.HTTPNotFound,
'PhysicalResourceNameAmbiguity': webob.exc.HTTPBadRequest,
'InvalidTenant': webob.exc.HTTPForbidden,
'Forbidden': webob.exc.HTTPForbidden,
'StackExists': webob.exc.HTTPConflict,