]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Send HTTP exceptions in the format expected by neutronclient
authorElena Ezhova <eezhova@mirantis.com>
Tue, 12 Aug 2014 15:43:09 +0000 (19:43 +0400)
committerElena Ezhova <eezhova@mirantis.com>
Mon, 18 Aug 2014 13:21:45 +0000 (17:21 +0400)
commitea3c43a4026e9cab8d96aae7d75bf43be40609b8
treec6d79c795831f82ecebeb4d48db8fbb11ffcdff4
parentf907677f1d85f12486d50a1fe8db03dcc9d08979
Send HTTP exceptions in the format expected by neutronclient

Neutron client for the v2 API expects exceptions to have 'type',
'message' and 'detail' attributes. That is why they need to be
included in the body of HTTP Exceptions.

Change-Id: I70bd47977e42ad7bac760600329e9440452b74bc
Closes-Bug: 1355902
neutron/api/v2/resource.py
neutron/tests/unit/test_api_v2_resource.py