Remove unsuitable brackets
With these brackets, the statement "raise Exception("Live migration
execution.....") in watcher/common/nova_helper.py, line 379 will never
be executed. So remove it and let the statement make sense.
Change-Id: I42a2fa0c8ffa9c84a918d432c5093470dbd80f82
This commit is contained in:
@@ -219,9 +219,11 @@ class TestNovaHelper(base.TestCase):
|
|||||||
self.instance_uuid, self.source_node, self.destination_node))
|
self.instance_uuid, self.source_node, self.destination_node))
|
||||||
|
|
||||||
setattr(server, 'status', 'ERROR')
|
setattr(server, 'status', 'ERROR')
|
||||||
self.assertRaises(Exception, nova_util.abort_live_migrate,
|
self.assertRaises(Exception,
|
||||||
(self.instance_uuid, self.source_node,
|
nova_util.abort_live_migrate,
|
||||||
self.destination_node))
|
self.instance_uuid,
|
||||||
|
self.source_node,
|
||||||
|
self.destination_node)
|
||||||
|
|
||||||
def test_non_live_migrate_instance_no_destination_node(
|
def test_non_live_migrate_instance_no_destination_node(
|
||||||
self, mock_glance, mock_cinder, mock_neutron, mock_nova):
|
self, mock_glance, mock_cinder, mock_neutron, mock_nova):
|
||||||
|
|||||||
Reference in New Issue
Block a user