Merge "Pass missing arg to "migrate_instance_finish""
This commit is contained in:
@@ -224,8 +224,10 @@ class ClusterOps(object):
|
||||
self._context, instance, migration)
|
||||
self._network_api.setup_networks_on_host(
|
||||
self._context, instance, self._this_node)
|
||||
# TODO(lpetrut): provide the actual port provider mappings.
|
||||
self._network_api.migrate_instance_finish(
|
||||
self._context, instance, migration)
|
||||
self._context, instance, migration,
|
||||
provider_mappings=None)
|
||||
self._network_api.setup_networks_on_host(
|
||||
self._context, instance, self._this_node)
|
||||
self._network_api.setup_networks_on_host(
|
||||
|
||||
@@ -330,7 +330,8 @@ class ClusterOpsTestCase(test_base.HyperVBaseTestCase):
|
||||
mock_network_api.migrate_instance_start.assert_called_once_with(
|
||||
self.clusterops._context, mock_instance, fake_migration)
|
||||
mock_network_api.migrate_instance_finish.assert_called_once_with(
|
||||
self.clusterops._context, mock_instance, fake_migration)
|
||||
self.clusterops._context, mock_instance, fake_migration,
|
||||
provider_mappings=None)
|
||||
|
||||
@mock.patch.object(objects.Instance, 'get_by_uuid')
|
||||
def test_get_instance_by_name(self, mock_get_by_uuid):
|
||||
|
||||
Reference in New Issue
Block a user