summaryrefslogtreecommitdiff
path: root/neutron/pecan_wsgi
diff options
context:
space:
mode:
authorKevin Benton <kevin@benton.pub>2016-03-14 08:00:46 -0700
committerKevin Benton <kevin@benton.pub>2016-04-29 13:18:14 -0700
commit2e19107fe2b7740d750aa39d28e2377a63c9dcfe (patch)
treefa17bc18cd7fc8991e5798bc99f1da11aa896fb4 /neutron/pecan_wsgi
parent1019d2b1e5c4c6a8729598e2c57e650fc94ce2f7 (diff)
downloadneutron-2e19107fe2b7740d750aa39d28e2377a63c9dcfe.tar.gz
Pecan: Fix Shim status codes
Fix the status codes returned by the shim controller to match the expectations of the API tests. Closes-bug: #1567801 Change-Id: Ibfede6b6bc4ba24cf2b9e4ff5540c2249695252f
Diffstat (limited to 'neutron/pecan_wsgi')
-rw-r--r--neutron/pecan_wsgi/controllers/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/neutron/pecan_wsgi/controllers/utils.py b/neutron/pecan_wsgi/controllers/utils.py
index 88b68e215c..74d6c1ff5d 100644
--- a/neutron/pecan_wsgi/controllers/utils.py
+++ b/neutron/pecan_wsgi/controllers/utils.py
@@ -74,6 +74,7 @@ class ShimItemController(NeutronPecanController):
def delete(self):
if not self.controller_delete:
pecan.abort(405)
+ pecan.response.status = 204
shim_request = ShimRequest(request.context['neutron_context'])
uri_identifiers = request.context['uri_identifiers']
return self.controller_delete(shim_request, self.item,
@@ -100,6 +101,7 @@ class ShimCollectionsController(NeutronPecanController):
def create(self):
if not self.controller_create:
pecan.abort(405)
+ pecan.response.status = 201
shim_request = ShimRequest(request.context['neutron_context'])
uri_identifiers = request.context['uri_identifiers']
return self.controller_create(shim_request, request.json,