]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix MeteringLabel model to not clear router's tenant id on deletion
authorOleg Bondarev <obondarev@mirantis.com>
Tue, 12 Nov 2013 15:05:26 +0000 (19:05 +0400)
committerOleg Bondarev <obondarev@mirantis.com>
Tue, 12 Nov 2013 15:09:29 +0000 (19:09 +0400)
commitd1220a3c22fccc1d86eaafeebe7ef9c074d4fcb9
tree642d9a60c48cfdae4c441c75a476be91abbc50be
parent1fa79ce2691fff526cd802dd1b5aaacb3ba69660
Fix MeteringLabel model to not clear router's tenant id on deletion

foreign_keys parameter of orm.relationship should point to local columns.
Currently for MeteringLabel it points to Router.tenant_id column which causes
routers tenant_id clearing on label deletion.

Closes-Bug: #1249188
Change-Id: Iccc0daf4f6edd537fd7f9e4b2fc4be094543ca5d
neutron/db/metering/metering_db.py
neutron/tests/unit/services/metering/test_metering_plugin.py