Merge "VMware: Enable thin volume from image on VVol"

This commit is contained in:
Zuul
2019-06-09 22:51:00 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -1175,7 +1175,8 @@ class VMwareVcVmdkDriverTestCase(test.TestCase):
resource_pool=rp,
vm_folder=folder,
vm_import_spec=import_spec,
image_size=image_size)
image_size=image_size,
http_method='POST')
if download_error:
self.assertFalse(vops.update_backing_disk_uuid.called)
vops.delete_backing.assert_called_once_with(backing)

View File

@@ -1347,7 +1347,8 @@ class VMwareVcVmdkDriver(driver.VolumeDriver):
resource_pool=rp,
vm_folder=folder,
vm_import_spec=vm_import_spec,
image_size=image_size)
image_size=image_size,
http_method='POST')
self.volumeops.update_backing_disk_uuid(backing, volume['id'])
except (exceptions.VimException,
exceptions.VMwareDriverException):