]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ipam: Prevent none from being passed to delete
authorAaron Rosen <aaronorosen@gmail.com>
Wed, 16 Sep 2015 22:50:21 +0000 (15:50 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Wed, 16 Sep 2015 22:50:21 +0000 (15:50 -0700)
commit77de4a3b54110c2d5b8b38efdfbeb5c35e2cb16d
tree673e9f2f9c834578d60244e2ef2782f7bf9ce7a0
parent2195501e9706de7a9127771187da4981d692eb7d
ipam: Prevent none from being passed to delete

Previously, it was possible for None to be passed to context.session.delete()
if a port was not found (usually a result of a concurrent delete). This
resulted in an UnmappedInstanceError. This is avoided now by calling
query.delete() directly which does not raise any exceptions.

Change-Id: I3b9f513308d90874ac8e8a7f6345697978d4920f
Closes-bug: #1496554
neutron/db/ipam_backend_mixin.py