Fix driver spawn method signature

A new argument has been added to this driver method. This change
updates it accordingly.

Change-Id: I9a59827660875fc3e1b0423c9504cb0569cd6daa
This commit is contained in:
Lucian Petrut 2017-10-19 12:01:28 +03:00
parent ac867cf27b
commit 328d087368
2 changed files with 4 additions and 2 deletions

View File

@ -155,7 +155,8 @@ class HyperVDriver(driver.ComputeDriver):
return self._vmops.estimate_instance_overhead(instance_info)
def spawn(self, context, instance, image_meta, injected_files,
admin_password, network_info=None, block_device_info=None):
admin_password, allocations, network_info=None,
block_device_info=None):
image_meta = self._recreate_image_meta(context, instance, image_meta)
self._vmops.spawn(context, instance, image_meta, injected_files,
admin_password, network_info, block_device_info)

View File

@ -151,7 +151,8 @@ class HyperVDriverTestCase(test_base.HyperVBaseTestCase):
self.driver.spawn(
mock.sentinel.context, mock.sentinel.instance,
mock.sentinel.image_meta, mock.sentinel.injected_files,
mock.sentinel.admin_password, mock.sentinel.network_info,
mock.sentinel.admin_password, mock.sentinel.allocations,
mock.sentinel.network_info,
mock.sentinel.block_device_info)
mock_recreate_img_meta.assert_called_once_with(