neutron/quantum/db
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
..
loadbalancer Merge "Use Query instances as iterables when possible" 2013-04-30 13:06:12 +00:00
migration Improve Python 3.x compatibility 2013-04-29 11:41:46 +02:00
__init__.py Second round of packaging changes 2011-11-28 10:33:52 -08:00
agents_db.py Docstrings formatted according to pep257 2013-04-29 12:13:39 +03:00
agentschedulers_db.py Merge "Use Query instances as iterables when possible" 2013-04-30 13:06:12 +00:00
api.py Merge "Improve Python 3.x compatibility" 2013-04-30 06:18:07 +00:00
db_base_plugin_v2.py Fix usage of Query.all() and NoResultFound 2013-05-03 16:24:57 +03:00
dhcp_rpc_base.py Remove locals() from strings substitutions 2013-04-20 11:56:26 +00:00
extraroute_db.py Use Query instances as iterables when possible 2013-04-29 10:12:41 +03:00
l3_db.py Merge "Fix port_id filter not honored" 2013-05-01 19:22:31 +00:00
l3_rpc_base.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
model_base.py Docstrings formatted according to pep257 2013-04-29 12:13:39 +03:00
models_v2.py Docstrings formatted according to pep257 2013-04-29 12:13:39 +03:00
portsecurity_db.py Docstrings formatted according to pep257 2013-04-29 12:13:39 +03:00
quota_db.py Merge "Use Query instances as iterables when possible" 2013-04-30 13:06:12 +00:00
routedserviceinsertion_db.py Switch to flake8 from pep8. 2013-04-04 04:57:52 +00:00
routerservicetype_db.py Switch to flake8 from pep8. 2013-04-04 04:57:52 +00:00
securitygroups_db.py Allow admin to delete default security groups 2013-05-01 17:14:40 -07:00
securitygroups_rpc_base.py Merge "Use Query instances as iterables when possible" 2013-04-30 13:06:12 +00:00
servicetype_db.py Use Query instances as iterables when possible 2013-04-29 10:12:41 +03:00
sqlalchemyutils.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00