]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
policy: made attach_* and detach_* methods more robust
authorIhar Hrachyshka <ihrachys@redhat.com>
Tue, 21 Jul 2015 13:37:33 +0000 (15:37 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Sat, 25 Jul 2015 06:09:55 +0000 (08:09 +0200)
commit9599e748cafd504d469a0e225e37ede18345d5ee
tree2c8ab585ca9062ac74149ec8fbeab607a26485bd
parent7ed1d4f61635e67d0a554ed34540a03222c3f9d3
policy: made attach_* and detach_* methods more robust

Handle cases when a policy or a port or a network are not in the
database without exposing database level exceptions to object consumers.

Change-Id: I06a0b5c4f474b370072f2b6a13146f17a51eb847
neutron/common/exceptions.py
neutron/db/qos/api.py
neutron/objects/qos/policy.py
neutron/tests/unit/objects/qos/test_policy.py