Add http_method to download_stream_optimized_data
download_stream_optimized_data method doesn't pass http_method to VmdkWriteHandle. Added the kwarg. Change-Id: I38755c0a693ee29189a79f48b9f61beb2e45de9a
This commit is contained in:
parent
d4fa571c36
commit
0258fe0c6a
@ -159,7 +159,8 @@ def download_stream_optimized_data(context, timeout_secs, read_handle,
|
||||
kwargs.get('resource_pool'),
|
||||
kwargs.get('vm_folder'),
|
||||
kwargs.get('vm_import_spec'),
|
||||
file_size)
|
||||
file_size,
|
||||
kwargs.get('http_method', 'PUT'))
|
||||
_start_transfer(read_handle, write_handle, timeout_secs)
|
||||
return write_handle.get_imported_vm()
|
||||
|
||||
|
@ -135,7 +135,8 @@ class ImageTransferUtilityTest(base.TestCase):
|
||||
resource_pool,
|
||||
vm_folder,
|
||||
vm_import_spec,
|
||||
image_size)
|
||||
image_size,
|
||||
'PUT')
|
||||
|
||||
fake_transfer.assert_called_once_with(read_handle,
|
||||
fake_VmdkWriteHandle,
|
||||
|
Loading…
Reference in New Issue
Block a user