]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add VolumeTenantAttribute API extension
authorBrian Waldon <bcwaldon@gmail.com>
Tue, 30 Oct 2012 22:06:12 +0000 (15:06 -0700)
committerBrian Waldon <bcwaldon@gmail.com>
Tue, 30 Oct 2012 22:24:57 +0000 (15:24 -0700)
commita105733cc970eaac2f4bc28f04b48f9149a2c801
tree75267e236124953a6e19b7befa828b820a80a491
parent4b6da60361f16e30da7233919b967069ce8f6285
Add VolumeTenantAttribute API extension

Expose the ID of the project to which a volume belongs through a
new API extension. This is only presented to Admins by default.
Visibility can be controlled with the 'volume_tenant_attribute'
policy rule.

Change-Id: If85d9759af6a9457bf3230375cc64af9efe4a088
cinder/api/openstack/volume/contrib/volume_tenant_attribute.py [new file with mode: 0644]
cinder/tests/api/openstack/volume/contrib/test_volume_host_attribute.py
cinder/tests/api/openstack/volume/contrib/test_volume_tenant_attribute.py [new file with mode: 0644]
cinder/tests/policy.json
etc/cinder/policy.json