From 642aa9a351436513502b76a705f9a3034e41b357 Mon Sep 17 00:00:00 2001 From: Lucas Palm Date: Thu, 29 Oct 2015 16:18:49 -0500 Subject: [PATCH] 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 --- horizon/test/tests/tables.py | 2 +- openstack_dashboard/api/nova.py | 2 +- .../dashboards/admin/routers/extensions/extraroutes/tables.py | 2 +- .../dashboards/admin/volumes/volume_types/forms.py | 2 +- .../dashboards/project/loadbalancers/workflows.py | 2 +- .../dashboards/project/network_topology/tests.py | 2 +- openstack_dashboard/dashboards/project/networks/workflows.py | 2 +- openstack_dashboard/settings.py | 2 +- openstack_dashboard/test/api_tests/fwaas_tests.py | 2 +- openstack_dashboard/usage/quotas.py | 2 +- tools/pseudo.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/horizon/test/tests/tables.py b/horizon/test/tests/tables.py index 55a6471997..d303ba9724 100644 --- a/horizon/test/tests/tables.py +++ b/horizon/test/tests/tables.py @@ -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() diff --git a/openstack_dashboard/api/nova.py b/openstack_dashboard/api/nova.py index 01d075cb60..3790284bdb 100644 --- a/openstack_dashboard/api/nova.py +++ b/openstack_dashboard/api/nova.py @@ -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, diff --git a/openstack_dashboard/dashboards/admin/routers/extensions/extraroutes/tables.py b/openstack_dashboard/dashboards/admin/routers/extensions/extraroutes/tables.py index 936f7a6bcc..226904eadb 100644 --- a/openstack_dashboard/dashboards/admin/routers/extensions/extraroutes/tables.py +++ b/openstack_dashboard/dashboards/admin/routers/extensions/extraroutes/tables.py @@ -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") diff --git a/openstack_dashboard/dashboards/admin/volumes/volume_types/forms.py b/openstack_dashboard/dashboards/admin/volumes/volume_types/forms.py index 10f1ae572e..99b180827b 100644 --- a/openstack_dashboard/dashboards/admin/volumes/volume_types/forms.py +++ b/openstack_dashboard/dashboards/admin/volumes/volume_types/forms.py @@ -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'], diff --git a/openstack_dashboard/dashboards/project/loadbalancers/workflows.py b/openstack_dashboard/dashboards/project/loadbalancers/workflows.py index 9d31b22320..a5598c7b9a 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/workflows.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/workflows.py @@ -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")) diff --git a/openstack_dashboard/dashboards/project/network_topology/tests.py b/openstack_dashboard/dashboards/project/network_topology/tests.py index 9097c1ed9e..be337feaaa 100644 --- a/openstack_dashboard/dashboards/project/network_topology/tests.py +++ b/openstack_dashboard/dashboards/project/network_topology/tests.py @@ -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: diff --git a/openstack_dashboard/dashboards/project/networks/workflows.py b/openstack_dashboard/dashboards/project/networks/workflows.py index a8c0409d95..879155fd61 100644 --- a/openstack_dashboard/dashboards/project/networks/workflows.py +++ b/openstack_dashboard/dashboards/project/networks/workflows.py @@ -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': diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index 89844dfcf0..bf3d505518 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -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 diff --git a/openstack_dashboard/test/api_tests/fwaas_tests.py b/openstack_dashboard/test/api_tests/fwaas_tests.py index 7969dddd52..d239d52854 100644 --- a/openstack_dashboard/test/api_tests/fwaas_tests.py +++ b/openstack_dashboard/test/api_tests/fwaas_tests.py @@ -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')}) diff --git a/openstack_dashboard/usage/quotas.py b/openstack_dashboard/usage/quotas.py index aafa6c22bc..b2dbfdcc24 100644 --- a/openstack_dashboard/usage/quotas.py +++ b/openstack_dashboard/usage/quotas.py @@ -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) diff --git a/tools/pseudo.py b/tools/pseudo.py index b2d7174069..fbb14cb76c 100755 --- a/tools/pseudo.py +++ b/tools/pseudo.py @@ -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