Merge "VMware: Fix create vol from streamOptimized image"

This commit is contained in:
Jenkins 2016-06-29 10:39:08 +00:00 committed by Gerrit Code Review
commit f27190538f
2 changed files with 2 additions and 2 deletions

View File

@ -787,7 +787,7 @@ class VMwareVcVmdkDriverTestCase(test.TestCase):
select_ds_for_volume.assert_called_once_with(volume)
vops.get_create_spec.assert_called_once_with(
volume['name'], 0, disk_type, summary.name, profileId=profile_id,
volume['name'], 0, disk_type, summary.name, profile_id=profile_id,
adapter_type=adapter_type, extra_config=extra_config)
self.assertEqual(vm_create_spec, import_spec.configSpec)
download_image.assert_called_with(

View File

@ -1020,7 +1020,7 @@ class VMwareVcVmdkDriver(driver.VolumeDriver):
dummy_disk_size,
disk_type,
summary.name,
profileId=profile_id,
profile_id=profile_id,
adapter_type=adapter_type,
extra_config=extra_config)
# convert vm_create_spec to vm_import_spec