]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
fix reference to tenant id.
authorfujioka yuuichi <fujioka-yuuichi@zx.mxh.nes.nec.co.jp>
Tue, 14 May 2013 00:01:17 +0000 (09:01 +0900)
committerfujioka yuuichi <fujioka-yuuichi@zx.mxh.nes.nec.co.jp>
Thu, 16 May 2013 10:28:13 +0000 (19:28 +0900)
commit84f65f387c873d7d342a56f081f7bf8025500bf9
tree31940fc84f3311b7c39893db4a3e5a83c2b0b002
parent2a0e7f2fa788c6aea73a9a0305355f5450e5b471
fix reference to tenant id.

Administrator can create resource, even if the tenant of resource is
different from the one of authentication. For example, administrator
can operate 'quantum net-create' command with different tenant
between the authentication tenant(--os-tenant-name) and --tenant-id.

In this case, quota cannot be restricted with the resource tenant,
because it is restricted with --os-tenant-name.

This patch fixes this problem.

Fixes: bug #1179729
Change-Id: I8ce893bb583d52f81c661082372d725bebf9c1be
quantum/db/quota_db.py
quantum/tests/unit/test_quota_ext.py