]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
PLUMgrid plugin: Fix for delete subnet with admin context
authorFawad Khaliq <fawad@plumgrid.com>
Sun, 21 Dec 2014 20:57:27 +0000 (12:57 -0800)
committerFawad Khaliq <fawad@plumgrid.com>
Mon, 22 Dec 2014 09:30:48 +0000 (01:30 -0800)
commitd5e9f06cf34096cd4c68c168086b6f9cc48072c3
treed4de041d3371322ddee77bd8b2649e85c70041da
parentb99ba2716f919577ea1dabca40599b0580e8f2d6
PLUMgrid plugin: Fix for delete subnet with admin context

When delete call using admin for a subnet created from a
non-admin project is made, the tenant_id passed to backend
happened to be of admin project. This commit fixes the issues
by getting the correct tenant_id.

Closes-Bug: 1404688
Change-Id: Id21c38610ed73defb937d971a7aade57713541c0
neutron/plugins/plumgrid/plumgrid_plugin/plumgrid_plugin.py
neutron/tests/unit/plumgrid/test_plumgrid_plugin.py