Browse Source

Add PhysicalResourceNameAmbiguity to exc mapping

Change-Id: I0c30328027c14306d27ee1948c0b3752b31982fe
Closes-Bug: #1474595
changes/02/202002/1
Oleksii Chuprykov 7 years ago
parent
commit
961ad96bdd
  1. 1
      heat/api/middleware/fault.py

1
heat/api/middleware/fault.py

@ -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,

Loading…
Cancel
Save