From: Shane Wang Date: Fri, 7 Feb 2014 07:27:36 +0000 (+0800) Subject: Fix misspellings in neutron X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=378e75d2c94cdafcec4e4c2f273a72edb2ff4d58;p=openstack-build%2Fneutron-build.git Fix misspellings in neutron Fix misspellings detected by: * pip install misspellings * git ls-files | grep -v locale | misspellings -f - Change-Id: I93d9e2a65b0c1d1d801cae59b74d7258fbdb17dc Closes-Bug: #1257295 --- diff --git a/neutron/db/l3_db.py b/neutron/db/l3_db.py index 71be3c41d..ea9d7a175 100644 --- a/neutron/db/l3_db.py +++ b/neutron/db/l3_db.py @@ -507,7 +507,7 @@ class L3_NAT_db_mixin(l3.RouterPluginBase): 'tenant than Floating IP %(floatingip_id)s and ' 'therefore cannot be bound.') % data) else: - msg = (_('Cannnot create floating IP and bind it to ' + msg = (_('Cannot create floating IP and bind it to ' 'Port %s, since that port is owned by a ' 'different tenant.') % port_id) raise q_exc.BadRequest(resource='floatingip', msg=msg) diff --git a/neutron/db/migration/alembic_migrations/versions/1149d7de0cfa_port_security.py b/neutron/db/migration/alembic_migrations/versions/1149d7de0cfa_port_security.py index 9b3629187..29f798f6e 100644 --- a/neutron/db/migration/alembic_migrations/versions/1149d7de0cfa_port_security.py +++ b/neutron/db/migration/alembic_migrations/versions/1149d7de0cfa_port_security.py @@ -15,7 +15,7 @@ # under the License. # -"""inital port security +"""initial port security Revision ID: 1149d7de0cfa Revises: 1b693c095aa3 diff --git a/neutron/plugins/cisco/db/network_db_v2.py b/neutron/plugins/cisco/db/network_db_v2.py index 456b8491a..94c5a37de 100644 --- a/neutron/plugins/cisco/db/network_db_v2.py +++ b/neutron/plugins/cisco/db/network_db_v2.py @@ -25,7 +25,7 @@ from neutron.plugins.cisco.common import cisco_constants as const from neutron.plugins.cisco.common import cisco_exceptions as c_exc from neutron.plugins.cisco.db import network_models_v2 # Do NOT remove this import. It is required for all the models to be seen -# by db.initalize() when called from VirtualPhysicalSwitchModelV2.__init__. +# by db.initialize() when called from VirtualPhysicalSwitchModelV2.__init__. from neutron.plugins.cisco.db import nexus_models_v2 # noqa from neutron.plugins.openvswitch import ovs_models_v2 diff --git a/neutron/tests/unit/test_wsgi.py b/neutron/tests/unit/test_wsgi.py index eeafa617e..27338b12a 100644 --- a/neutron/tests/unit/test_wsgi.py +++ b/neutron/tests/unit/test_wsgi.py @@ -700,7 +700,7 @@ class RequestHeadersDeserializerTest(base.BaseTestCase): req = wsgi.Request.blank('/') self.assertEqual( - deserializer.deserialize(req, 'nonExistant'), {}) + deserializer.deserialize(req, 'nonExistent'), {}) def test_custom(self): class Deserializer(wsgi.RequestHeadersDeserializer): @@ -857,11 +857,11 @@ class ServerTest(base.BaseTestCase): class MiddlewareTest(base.BaseTestCase): def test_process_response(self): def application(environ, start_response): - response = 'Sucess' + response = 'Success' return response response = application('test', 'fake') result = wsgi.Middleware(application).process_response(response) - self.assertEqual('Sucess', result) + self.assertEqual('Success', result) class FaultTest(base.BaseTestCase):