]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Better message on allowed address pairs error
authorKevin Benton <blak111@gmail.com>
Fri, 28 Aug 2015 05:12:48 +0000 (22:12 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Wed, 2 Sep 2015 22:43:33 +0000 (22:43 +0000)
commit8c3cb79aa54b0ffcdc840c7e95ab809835d05001
treeda99c89dd6793d31ce801d6e796172f1c17d5156
parent79ee9ad7e9196749aa398ad43bf50351c3b6d5c7
Better message on allowed address pairs error

Neutron was throwing a 500 error when a non-iterable was passed
into allowed address pairs. This patch just catches that and
converts it into a regular badrequest message.

Closes-Bug: #1477829
Change-Id: I3c6f55df4912c7a9480fa097988f910b254572fd
Signed-off-by: Kevin Benton <blak111@gmail.com>
neutron/extensions/allowedaddresspairs.py
neutron/tests/unit/db/test_allowedaddresspairs_db.py