]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Return volume_type extra specs based on policy
authorNate Potter <nathaniel.potter@intel.com>
Mon, 19 Oct 2015 16:24:29 +0000 (16:24 +0000)
committerNate Potter <nathaniel.potter@intel.com>
Thu, 29 Oct 2015 15:35:10 +0000 (15:35 +0000)
commit94714e761a894049534e22894c5e8b097876e677
tree6adabfeccddf0586370d4a02b8b0ef182141169d
parentb2e92b85b5ea2fc4058d6c0f6e9e3fddc2a9036e
Return volume_type extra specs based on policy

Currently extra specs are only shown to the admin user
when showing volume types. This patch grants the flexibility
to grant other users privelages to see them based on policy.

It also hides the extra_specs entry in the dictionary from
users who can't see it rather than just showing "None" as
the value.

Closes-Bug: #1504577
APIImpact

Change-Id: Ia8f71180f048ba9b253e35ee136915812ef8df0c
cinder/api/v2/types.py
cinder/api/v2/views/types.py
cinder/tests/unit/api/v2/test_types.py
etc/cinder/policy.json