]> 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)
committerÉdouard Thuleau <edouard.thuleau@cloudwatt.com>
Sun, 9 Feb 2014 09:57:56 +0000 (10:57 +0100)
commite62e5f3763934bef452d07dafc29ee3709bc2213
tree10292821e7a0044962a7ae072fbeeaa1fcbd633a
parent6df373d9c09c1b4eb258027e052ad2a5acde4bc8
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