From 9fd3e02760a5268daee1ea00485b78c7d31329ae Mon Sep 17 00:00:00 2001 From: JiaLei Shi Date: Mon, 13 Jun 2016 13:44:53 +0800 Subject: [PATCH] Fix some typos Fix typos detected by toolkit misspellings. * pip install misspellings * git ls-files | grep -v locale | misspellings -f - Change-Id: I858b3fea4badcf6d2af3405b278b243e12fce7e2 --- api-ref/source/os-cells.inc | 2 +- nova/conf/workarounds.py | 2 +- nova/tests/functional/test_legacy_v2_compatible_wrapper.py | 2 +- .../unit/api/openstack/compute/test_server_external_events.py | 2 +- .../unit/api/openstack/test_legacy_v2_compatible_wrapper.py | 4 ++-- nova/tests/unit/test_hacking.py | 2 +- nova/virt/libvirt/driver.py | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api-ref/source/os-cells.inc b/api-ref/source/os-cells.inc index 8e199360be21..b9ddcbb7229d 100644 --- a/api-ref/source/os-cells.inc +++ b/api-ref/source/os-cells.inc @@ -103,7 +103,7 @@ Normal response code: 200 Error response codes: badRequest(400), unauthorized(401), forbidden(403), NotImplemented(501) -.. TODO(cdent): this is weird, data is stuctured entirely differently. +.. TODO(cdent): this is weird, data is structured entirely differently. Show Cell Data ============== diff --git a/nova/conf/workarounds.py b/nova/conf/workarounds.py index e5db431bf82c..7d02940791e3 100644 --- a/nova/conf/workarounds.py +++ b/nova/conf/workarounds.py @@ -117,7 +117,7 @@ are ignored. This is an advanced feature which allows the hypervisor to signal to the compute service that an unexpected state change has occurred in an instance and that the instance can be shutdown automatically. Unfortunately, this can -race in some conditions, for exmaple in reboot operations or when the compute +race in some conditions, for example in reboot operations or when the compute service or when host is rebooted (planned or due to an outage). If such races are common, then it is advisable to disable this feature. diff --git a/nova/tests/functional/test_legacy_v2_compatible_wrapper.py b/nova/tests/functional/test_legacy_v2_compatible_wrapper.py index 774a1a416b58..b6222acdc05a 100644 --- a/nova/tests/functional/test_legacy_v2_compatible_wrapper.py +++ b/nova/tests/functional/test_legacy_v2_compatible_wrapper.py @@ -39,7 +39,7 @@ class LegacyV2CompatibleTestBase(test_servers.ServersTestBase): self.assertNotIn('Vary', response.headers) self.assertNotIn('type', response.body["keypair"]) - def test_request_without_addtional_properties_check(self): + def test_request_without_additional_properties_check(self): self.api.microversion = '2.100' response = self.api.api_post('os-keypairs', {"keypair": {"name": "test", "foooooo": "barrrrrr"}}) diff --git a/nova/tests/unit/api/openstack/compute/test_server_external_events.py b/nova/tests/unit/api/openstack/compute/test_server_external_events.py index b40efda50fa4..87ca0abfa647 100644 --- a/nova/tests/unit/api/openstack/compute/test_server_external_events.py +++ b/nova/tests/unit/api/openstack/compute/test_server_external_events.py @@ -145,7 +145,7 @@ class ServerExternalEventsTestV21(test.NoDBTestCase): self.assertRaises(self.invalid_error, self.api.create, self.req, body=body) - def test_create_unkown_events(self): + def test_create_unknown_events(self): self.event_1['name'] = 'unkown_event' body = {'events': self.event_1} self.assertRaises(self.invalid_error, diff --git a/nova/tests/unit/api/openstack/test_legacy_v2_compatible_wrapper.py b/nova/tests/unit/api/openstack/test_legacy_v2_compatible_wrapper.py index 4c15b30b1b51..52a66892ae9e 100644 --- a/nova/tests/unit/api/openstack/test_legacy_v2_compatible_wrapper.py +++ b/nova/tests/unit/api/openstack/test_legacy_v2_compatible_wrapper.py @@ -110,10 +110,10 @@ class TestLegacyV2CompatibleWrapper(test.NoDBTestCase): req.get_response(wrapper) -class TestSoftAddtionalPropertiesValidation(test.NoDBTestCase): +class TestSoftAdditionalPropertiesValidation(test.NoDBTestCase): def setUp(self): - super(TestSoftAddtionalPropertiesValidation, self).setUp() + super(TestSoftAdditionalPropertiesValidation, self).setUp() self.schema = { 'type': 'object', 'properties': { diff --git a/nova/tests/unit/test_hacking.py b/nova/tests/unit/test_hacking.py index 0f80d568f09e..5da6ec67c0b0 100644 --- a/nova/tests/unit/test_hacking.py +++ b/nova/tests/unit/test_hacking.py @@ -704,7 +704,7 @@ class HackingTestCase(test.NoDBTestCase): """ self._assert_has_no_errors(code6, checks.cfg_help_with_enough_text) - # The help text uses a paranthesis (weird, but produces a valid string) + # The help text uses a parenthesis (weird, but produces a valid string) code7 = """ opt = cfg.StrOpt("opt7", help=("help text uses extra paranthesis")) diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index 3d776ef2a2ba..3408237ea767 100644 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -210,7 +210,7 @@ NEXT_MIN_QEMU_VERSION = (1, 5, 3) # Relative block commit & rebase (feature is detected, # this version is only used for messaging) MIN_LIBVIRT_BLOCKJOB_RELATIVE_VERSION = (1, 2, 7) -# Libvirt version 1.2.17 is required for successfull block live migration +# Libvirt version 1.2.17 is required for successful block live migration # of vm booted from image with attached devices MIN_LIBVIRT_BLOCK_LM_WITH_VOLUMES_VERSION = (1, 2, 17) # libvirt discard feature