]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
[qos] cleanup _find_object from neutron.db.api
authorIhar Hrachyshka <ihrachys@redhat.com>
Tue, 21 Jul 2015 13:05:33 +0000 (15:05 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 23 Jul 2015 11:49:49 +0000 (13:49 +0200)
commit69f4b813e8a086512f39ee3ef5b8f3354f9af8c0
treeda83578c7b31f3a1ea103ccc950db385c192e34b
parentd3708de0cb1dacc610bc9585a55dd260a862104d
[qos] cleanup _find_object from neutron.db.api

Instead of having a separate function for id-based search, make
get_object accept any kwargs, including id=, and reuse it everywhere
where we used _find_object before.

Change-Id: Ibd94c41fb847d67aabb94172d0117bafc0fdbdf6
neutron/db/api.py
neutron/objects/base.py
neutron/objects/qos/policy.py
neutron/objects/qos/rule.py
neutron/tests/unit/objects/qos/test_rule.py
neutron/tests/unit/objects/test_base.py