]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add VolumeHostAttribute API extension
authorBrian Waldon <bcwaldon@gmail.com>
Sat, 27 Oct 2012 22:36:30 +0000 (15:36 -0700)
committerBrian Waldon <bcwaldon@gmail.com>
Mon, 29 Oct 2012 20:13:29 +0000 (13:13 -0700)
commit826c4520d093f5e0809a08e10b5d18bf69adc698
tree4131623ac65385fce2b3e73dfa6f21b1905d0a8a
parent61917c2193ec4ca822af946a808dd0061cb77ef4
Add VolumeHostAttribute API extension

Expose the host on which a volume resides through a new API
extension. This is only presented to Admins by default. This
can be controlled with the 'volume_host_attribute' policy
rule.

Fixes bug 1035350.

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