Merge "Fix driver spawn method signature"
This commit is contained in:
commit
810a29f677
@ -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)
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user