]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix fetch_to_volume_format if vhd is requested
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 16 Feb 2015 17:43:17 +0000 (19:43 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Sat, 18 Apr 2015 17:22:07 +0000 (20:22 +0300)
commit521d51b985babca8ba8dd5e2c29049fee4f60ad4
tree3a45b5639e39b6cbccef96f0f80b4c5b6af166cf
parent8d27e2939617053eb5c26e9479140578ef257737
Fix fetch_to_volume_format if vhd is requested

qemu-img still uses the legacy 'vpc' format name. If the caller
requests a vhd image, the format check would raise an exception.

This patch adds an extra check to prevent this issue.

Change-Id: Ie72c0a79c08e8b7eefbd1534e45bc46f91ace96e
Partially-implements: blueprint bp/image-caching-support
cinder/image/image_utils.py
cinder/tests/unit/test_image_utils.py