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:
chenke
2018-11-12 20:19:40 +08:00
parent 701a248324
commit 1e8b63e6f4

View File

@@ -219,9 +219,11 @@ class TestNovaHelper(base.TestCase):
self.instance_uuid, self.source_node, self.destination_node))
setattr(server, 'status', 'ERROR')
self.assertRaises(Exception, nova_util.abort_live_migrate,
(self.instance_uuid, self.source_node,
self.destination_node))
self.assertRaises(Exception,
nova_util.abort_live_migrate,
self.instance_uuid,
self.source_node,
self.destination_node)
def test_non_live_migrate_instance_no_destination_node(
self, mock_glance, mock_cinder, mock_neutron, mock_nova):