diff options
author | Iccha Sethi <iccha.sethi@rackspace.com> | 2014-09-26 14:36:26 -0500 |
---|---|---|
committer | Iccha Sethi <iccha.sethi@rackspace.com> | 2014-09-29 11:38:28 -0500 |
commit | c3139485310893fd1ddd70633fb35cae544f7b6e (patch) | |
tree | 39d4eb878a0132a26f014a9308998b3e88ef84dd /trove/common/wsgi.py | |
parent | a5c515071174a494b1324147d4ac8f9aa8e650d4 (diff) | |
download | trove-c3139485310893fd1ddd70633fb35cae544f7b6e.tar.gz |
Mandate detach replicas before deleting replica source
If the user attempts to delete an instance which has
replicas attached to it, forbid the delete.
Closes bug: #1362299
Change-Id: I644243aef74d9a34b7726139f9fa5ca8bdb1452c
Diffstat (limited to 'trove/common/wsgi.py')
-rw-r--r-- | trove/common/wsgi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trove/common/wsgi.py b/trove/common/wsgi.py index 823df0d4..766d5960 100644 --- a/trove/common/wsgi.py +++ b/trove/common/wsgi.py @@ -317,6 +317,9 @@ class Controller(object): exception.Forbidden, exception.SwiftAuthError, ], + webob.exc.HTTPForbidden: [ + exception.ReplicaSourceDeleteForbidden, + ], webob.exc.HTTPBadRequest: [ exception.InvalidModelError, exception.BadRequest, |