Fix some typos

Fix typos detected by toolkit misspellings.

* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I858b3fea4badcf6d2af3405b278b243e12fce7e2
This commit is contained in:
JiaLei Shi 2016-06-13 13:44:53 +08:00
parent 279f1a9bf6
commit 9fd3e02760
7 changed files with 8 additions and 8 deletions

View File

@ -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
==============

View File

@ -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.

View File

@ -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"}})

View File

@ -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,

View File

@ -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': {

View File

@ -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"))

View File

@ -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