]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix misspellings in neutron
authorShane Wang <shane.wang@intel.com>
Fri, 7 Feb 2014 07:27:36 +0000 (15:27 +0800)
committerShane Wang <shane.wang@intel.com>
Fri, 7 Feb 2014 07:28:22 +0000 (15:28 +0800)
Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I93d9e2a65b0c1d1d801cae59b74d7258fbdb17dc
Closes-Bug: #1257295

neutron/db/l3_db.py
neutron/db/migration/alembic_migrations/versions/1149d7de0cfa_port_security.py
neutron/plugins/cisco/db/network_db_v2.py
neutron/tests/unit/test_wsgi.py

index 71be3c41d08d70bf4dae9dcc9dbd46b89f8f9c4b..ea9d7a175e0e88f5cefd1c0d593f6488cd6e74a8 100644 (file)
@@ -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)
index 9b3629187f501ba565d4634dfceb965f02338d0a..29f798f6e43f0a61cf1d85d7c49306bf7388c17c 100644 (file)
@@ -15,7 +15,7 @@
 #    under the License.
 #
 
-"""inital port security
+"""initial port security
 
 Revision ID: 1149d7de0cfa
 Revises: 1b693c095aa3
index 456b8491aedd217900fe304e0f67d4f8ca49bb41..94c5a37de7615575776be3a395a80aaaf4e87e08 100644 (file)
@@ -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
 
index eeafa617ee2df0efde704b00e4774da477105cb6..27338b12a781c2bb79fe0f7edac4a3ea9acafad6 100644 (file)
@@ -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):