vmware-nsx/quantum
Roman Podolyaka daaf2b6d65 Fix usage of Query.all() and NoResultFound
SQLAlchemy Query.all() method doesn't raise NoResultFound
exception in case if no result is found but rather returns
an empty list. So this pattern which is common for our code
doesn't make sense and should be fixed:

    try:
        dns_qry = context.session.query(models_v2.DNSNameServer)
        return dns_qry.filter_by(subnet_id=subnet_id).all()
    except exc.NoResultFound:
        return []

Fixes bug 1173131.

Change-Id: I19b64eecd6edac0dba7dd0bf2ab32690c46e4f8b
2013-05-03 16:24:57 +03:00
..
agent Do not attempt to kill already-dead dnsmasq 2013-05-02 11:58:00 +00:00
api Docstrings formatted according to pep257 2013-04-29 11:20:15 +03:00
common Docstrings formatted according to pep257 2013-04-29 12:13:39 +03:00
db Fix usage of Query.all() and NoResultFound 2013-05-03 16:24:57 +03:00
debug Docstrings formatted according to pep257 2013-04-29 12:13:39 +03:00
extensions Merge "Docstrings formatted according to pep257" 2013-04-29 11:59:07 +00:00
locale Imported Translations from Transifex 2013-05-02 00:06:38 +00:00
openstack Update RPC code from OSLO 2013-05-01 13:47:59 +00:00
plugins Fix usage of Query.all() and NoResultFound 2013-05-03 16:24:57 +03:00
rootwrap Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00
scheduler Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00
server Improve Python 3.x compatibility 2013-04-29 11:41:46 +02:00
tests Do not attempt to kill already-dead dnsmasq 2013-05-02 11:58:00 +00:00
__init__.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
auth.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
context.py Make the 'admin' role configurable 2013-04-22 20:42:02 +02:00
manager.py Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00
policy.py Make the 'admin' role configurable 2013-04-22 20:42:02 +02:00
quantum_plugin_base_v2.py Supporting pagination in api v2.0 2013-02-19 23:04:13 +08:00
quota.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
service.py Merge "Enable automatic validation of many HACKING rules." 2013-04-12 15:10:32 +00:00
version.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
wsgi.py Improve Python 3.x compatibility 2013-04-29 11:41:46 +02:00