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
This commit is contained in:
parent
ba018dd734
commit
a6164f2efe
@ -507,7 +507,7 @@ class L3_NAT_db_mixin(l3.RouterPluginBase):
|
|||||||
'tenant than Floating IP %(floatingip_id)s and '
|
'tenant than Floating IP %(floatingip_id)s and '
|
||||||
'therefore cannot be bound.') % data)
|
'therefore cannot be bound.') % data)
|
||||||
else:
|
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 '
|
'Port %s, since that port is owned by a '
|
||||||
'different tenant.') % port_id)
|
'different tenant.') % port_id)
|
||||||
raise q_exc.BadRequest(resource='floatingip', msg=msg)
|
raise q_exc.BadRequest(resource='floatingip', msg=msg)
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
"""inital port security
|
"""initial port security
|
||||||
|
|
||||||
Revision ID: 1149d7de0cfa
|
Revision ID: 1149d7de0cfa
|
||||||
Revises: 1b693c095aa3
|
Revises: 1b693c095aa3
|
||||||
|
@ -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.common import cisco_exceptions as c_exc
|
||||||
from neutron.plugins.cisco.db import network_models_v2
|
from neutron.plugins.cisco.db import network_models_v2
|
||||||
# Do NOT remove this import. It is required for all the models to be seen
|
# 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.cisco.db import nexus_models_v2 # noqa
|
||||||
from neutron.plugins.openvswitch import ovs_models_v2
|
from neutron.plugins.openvswitch import ovs_models_v2
|
||||||
|
|
||||||
|
@ -700,7 +700,7 @@ class RequestHeadersDeserializerTest(base.BaseTestCase):
|
|||||||
req = wsgi.Request.blank('/')
|
req = wsgi.Request.blank('/')
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
deserializer.deserialize(req, 'nonExistant'), {})
|
deserializer.deserialize(req, 'nonExistent'), {})
|
||||||
|
|
||||||
def test_custom(self):
|
def test_custom(self):
|
||||||
class Deserializer(wsgi.RequestHeadersDeserializer):
|
class Deserializer(wsgi.RequestHeadersDeserializer):
|
||||||
@ -857,11 +857,11 @@ class ServerTest(base.BaseTestCase):
|
|||||||
class MiddlewareTest(base.BaseTestCase):
|
class MiddlewareTest(base.BaseTestCase):
|
||||||
def test_process_response(self):
|
def test_process_response(self):
|
||||||
def application(environ, start_response):
|
def application(environ, start_response):
|
||||||
response = 'Sucess'
|
response = 'Success'
|
||||||
return response
|
return response
|
||||||
response = application('test', 'fake')
|
response = application('test', 'fake')
|
||||||
result = wsgi.Middleware(application).process_response(response)
|
result = wsgi.Middleware(application).process_response(response)
|
||||||
self.assertEqual('Sucess', result)
|
self.assertEqual('Success', result)
|
||||||
|
|
||||||
|
|
||||||
class FaultTest(base.BaseTestCase):
|
class FaultTest(base.BaseTestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user