Corrected spelling errors throughout the project

While browsing through the Horizon repository, I came across a
few spelling errors that need correction.

Change-Id: I593e9f04ea5d9f3985a14fb994b745243468387a
Closes-Bug: #1511532
This commit is contained in:
Lucas Palm 2015-10-29 16:18:49 -05:00
parent c7b4ca3600
commit 642aa9a351
11 changed files with 11 additions and 11 deletions

View File

@ -988,7 +988,7 @@ class DataTableTests(test.TestCase):
['FakeObject: object_2'],
transform=six.text_type)
# Ensure fitering respects the request method, e.g. no filter here
# Ensure filtering respects the request method, e.g. no filter here
req = self.factory.get('/my_url/', {action_string: '2'})
self.table = MyTable(req, TEST_DATA)
handled = self.table.maybe_handle()

View File

@ -350,7 +350,7 @@ class SecurityGroupManager(network_base.SecurityGroupManager):
# Exception, since the former is recognized as a
# "recoverable" exception by horizon, and therefore the
# error message is passed along to the end user, while
# Exception is swallowed alive by horizon and a gneric
# Exception is swallowed alive by horizon and a generic
# error message is given to the end user
raise nova_exceptions.ClientException(
err.code,

View File

@ -22,6 +22,6 @@ from openstack_dashboard.dashboards.project.routers.extensions.extraroutes\
class AdminRouterRoutesTable(routes_table.ExtraRoutesTable):
class Meta(object):
# Redifine Meta class to disable action (admin)
# Redefine Meta class to disable action (admin)
name = "extra_routes"
verbose_name = _("Static Routes")

View File

@ -107,7 +107,7 @@ class CreateVolumeTypeEncryption(forms.SelfHandlingForm):
if data['cipher'] is u'':
data['cipher'] = None
# Create encyrption for the volume type
# Create encryption for the volume type
volume_type = cinder.\
volume_encryption_type_create(request,
data['volume_type_id'],

View File

@ -37,7 +37,7 @@ class AddPoolAction(workflows.Action):
description = forms.CharField(
initial="", required=False,
max_length=80, label=_("Description"))
# provider is optional because some LBaaS implemetation does
# provider is optional because some LBaaS implementation does
# not support service-type extension.
provider = forms.ChoiceField(label=_("Provider"), required=False)
subnet_id = forms.ChoiceField(label=_("Subnet"))

View File

@ -90,7 +90,7 @@ class NetworkTopologyTests(test.TestCase):
for server in self.servers.list()]
self.assertEqual(expect_server_urls, data['servers'])
# rotuers
# routers
# result_router_urls = [(router['id'], router['url'])
# for router in data['routers']]
if router_enable:

View File

@ -280,7 +280,7 @@ class CreateSubnetInfoAction(workflows.Action):
address_source = cleaned_data.get('address_source')
# When creating network from a pool it is allowed to supply empty
# subnetpool_id signalling that Neutron should choose the default
# subnetpool_id signaling that Neutron should choose the default
# pool configured by the operator. This is also part of the IPv6
# Prefix Delegation Workflow.
if not cidr and address_source != 'subnetpool':

View File

@ -181,7 +181,7 @@ SESSION_COOKIE_HTTPONLY = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_COOKIE_SECURE = False
# SESSION_TIMEOUT is a method to supercede the token timeout with a shorter
# SESSION_TIMEOUT is a method to supersede the token timeout with a shorter
# horizon session timeout (in seconds). So if your token expires in 60
# minutes, a value of 1800 will log users out after 30 minutes
SESSION_TIMEOUT = 3600

View File

@ -346,7 +346,7 @@ class FwaasApiTests(test.APITestCase):
self.assertEqual(exp_firewall.policy.name, ret_val.policy.name)
# TODO(absubram) : Add API tests for firewall_create with routers,
# add router to firewal and remove router from fw.
# add router to firewall and remove router from fw.
@test.create_stubs({neutronclient: ('list_firewalls',
'list_firewall_policies')})

View File

@ -290,7 +290,7 @@ def _get_tenant_compute_usages(request, usages, disabled_quotas, tenant_id):
usages.tally('cores', getattr(flavor, 'vcpus', None))
usages.tally('ram', getattr(flavor, 'ram', None))
# Initialise the tally if no instances have been launched yet
# Initialize the tally if no instances have been launched yet
if len(instances) == 0:
usages.tally('cores', 0)
usages.tally('ram', 0)

View File

@ -28,7 +28,7 @@ def translate(segment):
if segment.startswith('\n'):
prefix = u"\n"
orig_size = len(segment)
# Add extra expansion space based on recommenation from
# Add extra expansion space based on recommendation from
# http://www-01.ibm.com/software/globalization/guidelines/a3.html
if orig_size < 20:
multiplier = 1