]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix typos in neutron code
authorEdgar Magana <emagana@gmail.com>
Tue, 4 Aug 2015 15:03:20 +0000 (08:03 -0700)
committerEdgar Magana <emagana@gmail.com>
Tue, 4 Aug 2015 16:28:02 +0000 (09:28 -0700)
Fix typos found in neutron code and docs

Change-Id: I4afc3a4b36dd47d47d1238ac22e7f09e2d75050d
Related-Bug: #1424139

neutron/db/flavors_db.py
neutron/tests/common/conn_testers.py

index 75f5241be9bb92b0e035decc29e453183e464584..8dc3f2edf3a962179609fe029e73dbe63079cbab 100644 (file)
@@ -276,7 +276,7 @@ class FlavorManager(common_db_mixin.CommonDbMixin):
         sp = service_profile['service_profile']
         with context.session.begin(subtransactions=True):
             driver_klass = self._load_dummy_driver(sp['driver'])
-            # 'get_service_type' must be a static method so it cant be changed
+            # 'get_service_type' must be a static method so it can't be changed
             svc_type = DummyServiceDriver.get_service_type()
 
             sp_db = ServiceProfile(id=uuidutils.generate_uuid(),
index 2de8f422dec42098ffc1f597bd090df85f84341b..7d04831e02d18aecdcfe372c7716dc00e582462b 100644 (file)
@@ -154,11 +154,12 @@ class ConnectionTester(fixtures.Fixture):
             dst_port_info = str()
             src_port_info = str()
             if dst_port is not None:
-                dst_port_info = " and destionation port %d" % dst_port
+                dst_port_info = " and destination port %d" % dst_port
             if src_port is not None:
                 src_port_info = " and source port %d" % src_port
-            raise ConnectionTesterException("%s connection with %s protocol%s"
-                                            "%s was established but it "
+            raise ConnectionTesterException("%s connection with protocol %s, "
+                                            "source port %s, destination "
+                                            "port %s was established but it "
                                             "shouldn't be possible" % (
                                                 direction, protocol,
                                                 src_port_info, dst_port_info))
@@ -191,8 +192,8 @@ class ConnectionTester(fixtures.Fixture):
             pass
         else:
             raise ConnectionTesterException(
-                'Established %s connection with protocol %s, source port  %s, '
-                'destination port %s can still send packets throught' % (
+                'Established %s connection with protocol %s, source port %s, '
+                'destination port %s can still send packets through' % (
                     direction, protocol, src_port, dst_port))
 
     @_validate_direction