Merge "Fixes Cinder fails to upload volume to vhd image"
This commit is contained in:
commit
69b4cfd09c
cinder
@ -326,7 +326,7 @@ class TestWindowsDriver(test.TestCase):
|
||||
vhdutils.VHDUtils.convert_vhd(temp_vhd_path, upload_image,
|
||||
constants.VHD_TYPE_DYNAMIC)
|
||||
|
||||
image_utils.upload_volume(None, None, image_meta, upload_image, 'vpc')
|
||||
image_utils.upload_volume(None, None, image_meta, upload_image, 'vhd')
|
||||
|
||||
fileutils.delete_if_exists(temp_vhd_path)
|
||||
fileutils.delete_if_exists(upload_image)
|
||||
|
@ -201,7 +201,7 @@ class WindowsDriver(driver.ISCSIDriver):
|
||||
constants.VHD_TYPE_DYNAMIC)
|
||||
|
||||
image_utils.upload_volume(context, image_service, image_meta,
|
||||
upload_image, 'vpc')
|
||||
upload_image, 'vhd')
|
||||
finally:
|
||||
fileutils.delete_if_exists(temp_vhd_path)
|
||||
fileutils.delete_if_exists(upload_image)
|
||||
|
Loading…
x
Reference in New Issue
Block a user