]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix for multiple misspelled words
authorEdgar Magana <emagana@gmail.com>
Fri, 23 May 2014 23:59:55 +0000 (16:59 -0700)
committerEdgar Magana <emagana@gmail.com>
Sat, 24 May 2014 00:07:56 +0000 (17:07 -0700)
In Neutron code, a few misspelled words have been found.
This commit fix them all to this date.

Change-Id: Ic11b8ec0adf83a6675f7295e557f436051aa26cd
Closes-Bug: 1323344

neutron/agent/linux/iptables_firewall.py
neutron/db/db_base_plugin_v2.py
neutron/db/migration/migrate_to_ml2.py
neutron/notifiers/nova.py
neutron/openstack/common/systemd.py
neutron/tests/unit/test_extension_ext_net.py

index 8d112e819eefcd877e13a344ca35ac8cdd1cf6e0..eecebaa6e280d532461507234fea01854029a93f 100644 (file)
@@ -333,7 +333,7 @@ class IptablesFirewallDriver(firewall.FirewallDriver):
 
         if protocol in ['icmp', 'icmpv6']:
             # Note(xuhanp): port_range_min/port_range_max represent
-            # icmp type/code when protocal is icmp or icmpv6
+            # icmp type/code when protocol is icmp or icmpv6
             # icmp code can be 0 so we cannot use "if port_range_max" here
             if port_range_max is not None:
                 return ['--%s-type' % protocol,
index cf65c954bfb69b63f04a62477e543a23e7378b20..7b3ae166ada775abf53e920048a9ab31e00f183d 100644 (file)
@@ -238,7 +238,7 @@ class NeutronDbPluginV2(neutron_plugin_base_v2.NeutronPluginBaseV2,
         db.configure_db()
         if cfg.CONF.notify_nova_on_port_status_changes:
             from neutron.notifiers import nova
-            # NOTE(arosen) These event listners are here to hook into when
+            # NOTE(arosen) These event listeners are here to hook into when
             # port status changes and notify nova about their change.
             self.nova_notifier = nova.Notifier()
             event.listen(models_v2.Port, 'after_insert',
index e1dad590958a5ef516c3bb4dc32044d9e917bdc9..858e08cf6c5afbd052b7d9b1c8fcc3da9268bbc8 100755 (executable)
@@ -34,7 +34,7 @@ Example usage:
   python -m neutron.db.migration.migrate_to_ml2 openvswitch \
       mysql://login:pass@127.0.0.1/neutron
 
-Note that migration of tunneling state will only be attemped if the
+Note that migration of tunneling state will only be attempted if the
 --tunnel-type parameter is provided.
 
 To manually test migration from ovs to ml2 with devstack:
index 1237a16b74f94aebc2737190f0d1b54b3bd3be72..bffdf22d7f9eeae03a543f9eaa8c21d453f5ea75 100644 (file)
@@ -75,7 +75,7 @@ class Notifier(object):
         If a thread is already alive and waiting, this call will simply queue
         the event and return leaving it up to the thread to send it.
 
-        :param event: the event that occured.
+        :param event: the event that occurred.
         """
         if not event:
             return
@@ -120,7 +120,7 @@ class Notifier(object):
                             returned_obj):
         """Called when a network change is made that nova cares about.
 
-        :param action: the event that occured.
+        :param action: the event that occurred.
         :param original_obj: the previous value of resource before action.
         :param returned_obj: the body returned to client as result of action.
         """
index e1ba656881d16b985ed0a1c7c289dcd8bb47bca0..cc02caba3e71d157f21b15f58959867d2dd41236 100644 (file)
@@ -75,7 +75,7 @@ def onready(notify_socket, timeout):
     :type timeout:        float
     :returns:             0 service ready
                           1 service not ready
-                          2 timeout occured
+                          2 timeout occurred
     """
     sock = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
     sock.settimeout(timeout)
index 8633e245a514b89c09a1f66c3b8238a86102a49a..b525b9dd61c0af88e4a02b72542b2f967997adfb 100644 (file)
@@ -139,7 +139,7 @@ class ExtNetDBTestCase(test_db_plugin.NeutronDbPluginV2TestCase):
                         pass
                     self.assertEqual(ctx_manager.exception.code, 403)
 
-    def test_create_port_external_network_admin_suceeds(self):
+    def test_create_port_external_network_admin_succeeds(self):
         with self.network(router__external=True) as ext_net:
             with self.subnet(network=ext_net) as ext_subnet:
                 with self.port(subnet=ext_subnet) as port:
@@ -154,7 +154,7 @@ class ExtNetDBTestCase(test_db_plugin.NeutronDbPluginV2TestCase):
                 pass
             self.assertEqual(ctx_manager.exception.code, 403)
 
-    def test_create_external_network_admin_suceeds(self):
+    def test_create_external_network_admin_succeeds(self):
         with self.network(router__external=True) as ext_net:
             self.assertEqual(ext_net['network'][external_net.EXTERNAL],
                              True)