]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
add get_location method for images
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 14 Aug 2012 19:26:19 +0000 (12:26 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 14 Aug 2012 20:33:10 +0000 (13:33 -0700)
commit171a57a6879683dac5f219a0e8f1080ea687105d
tree2119c75d442c78f26c6f6435eeaf0df86ad5f2a7
parentb760654404f96d6a566b84df6ae61cc9630f5028
add get_location method for images

This is useful for determining whether the backend storage for the
image in Glance is the same as the storage used in a volume driver.

The direct_url is only available in the v2 images API, so add a
version parameter to each request. As more parts of the v2 API are
used, this parameter will become more useful.

Change-Id: I5ca06b6d80ffe4118f8dd381ed11283573bce71f
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
cinder/image/glance.py
cinder/tests/image/fake.py