]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Don't truncate osapi_volume_link prefixes
authorDeliang Fan <fandeliang@letv.com>
Fri, 24 Apr 2015 03:16:46 +0000 (11:16 +0800)
committerDeliang Fan <fandeliang@letv.com>
Fri, 24 Apr 2015 03:24:17 +0000 (11:24 +0800)
commit4edfd79265d89a438554acd5266933f8e20c9ff0
tree0865f445baac49c46a6d0c5833957a643ea8e54d
parentf794e8f47f9a075b6264dd72d3f59c8153fa7d81
Don't truncate osapi_volume_link prefixes

When osapi_volume_link_prefix is defined and used to update the
links return in API responses, do not drop the path component of
the overriding link prefix.

Change-Id: Ic84e16cdfa989d4af7f076a4c244808be2ca4dce
Closes-Bug: #1304099
cinder/api/common.py
cinder/tests/unit/api/test_common.py