Skip to content

Commit

Permalink
Merge "Wait for network-vif-plugged on resize revert" into stable/rocky
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 8, 2018
2 parents 8dacfd3 + b35b812 commit 4a12c9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nova/tests/unit/virt/libvirt/test_driver.py
Expand Up @@ -18763,7 +18763,7 @@ def fake_create_domain(context, xml, instance, network_info,
vifs_already_plugged=None):
self.fake_create_domain_called = True
self.assertEqual(powered_on, power_on)
self.assertTrue(vifs_already_plugged)
self.assertFalse(vifs_already_plugged)
return mock.MagicMock()

def fake_enable_hairpin():
Expand Down
3 changes: 1 addition & 2 deletions nova/virt/libvirt/driver.py
Expand Up @@ -8493,8 +8493,7 @@ def finish_revert_migration(self, context, instance, network_info,
block_device_info=block_device_info)
self._create_domain_and_network(context, xml, instance, network_info,
block_device_info=block_device_info,
power_on=power_on,
vifs_already_plugged=True)
power_on=power_on)

if power_on:
timer = loopingcall.FixedIntervalLoopingCall(
Expand Down

0 comments on commit 4a12c9c

Please sign in to comment.