]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2 plugin cannot raise NoResultFound exception
authorÉdouard Thuleau <edouard.thuleau@cloudwatt.com>
Sat, 8 Feb 2014 17:28:19 +0000 (18:28 +0100)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:18 +0000 (15:20 +0800)
commitc38ef8aa18eb5db46ab442208ceb181e17879f31
tree1123fad683f8a7b9df29ff18e59d71eb263f9412
parent12d9bfbc108a1436f2a68161667356c28a568f6d
ML2 plugin cannot raise NoResultFound exception

The ML2 plugin cannot raise NoResultFound exception because it does not
use the correct sqlalchemy library:
'from sqlalchemy import exc as ...' instead of 'from sqlalchemy.orm
import exc as ...'

Closes-Bug: #1277914
Change-Id: If3819adc62b9254f0c08eea6dcfcf5f06288e20e
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py