]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Return volume type name on volume create
authorClay Gerrard <clay.gerrard@gmail.com>
Wed, 31 Oct 2012 20:25:55 +0000 (15:25 -0500)
committerClay Gerrard <clay.gerrard@gmail.com>
Wed, 31 Oct 2012 20:39:59 +0000 (15:39 -0500)
commitecc664dca2c6844a7963da63d3495281ef5866c8
tree20c0c8ac12dc1d7be7421a1e4f447bf1c01185c4
parent80654f8bcda3db3f55c838f17dee2fccfc77f854
Return volume type name on volume create

Update openstack api controller for volumes to fully inflate the
returned volume model on create to populate the volume_type fields so
the response serializer will return the name of the volume_type instead
of the id on volume create requests.  Returning the name on create is
consistent with the show and index commands.

fixes bug #1071436

Change-Id: Ie091cf824a2df40211d8bcfa7f177fc851d737f5
cinder/api/openstack/volume/volumes.py
cinder/tests/api/openstack/volume/test_volumes.py