From: Edgar Magana Date: Fri, 23 May 2014 23:59:55 +0000 (-0700) Subject: Fix for multiple misspelled words X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8613687503114a1be8c67f95fcc3a0efbd0bb83c;p=openstack-build%2Fneutron-build.git Fix for multiple misspelled words In Neutron code, a few misspelled words have been found. This commit fix them all to this date. Change-Id: Ic11b8ec0adf83a6675f7295e557f436051aa26cd Closes-Bug: 1323344 --- diff --git a/neutron/agent/linux/iptables_firewall.py b/neutron/agent/linux/iptables_firewall.py index 8d112e819..eecebaa6e 100644 --- a/neutron/agent/linux/iptables_firewall.py +++ b/neutron/agent/linux/iptables_firewall.py @@ -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, diff --git a/neutron/db/db_base_plugin_v2.py b/neutron/db/db_base_plugin_v2.py index cf65c954b..7b3ae166a 100644 --- a/neutron/db/db_base_plugin_v2.py +++ b/neutron/db/db_base_plugin_v2.py @@ -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', diff --git a/neutron/db/migration/migrate_to_ml2.py b/neutron/db/migration/migrate_to_ml2.py index e1dad5909..858e08cf6 100755 --- a/neutron/db/migration/migrate_to_ml2.py +++ b/neutron/db/migration/migrate_to_ml2.py @@ -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: diff --git a/neutron/notifiers/nova.py b/neutron/notifiers/nova.py index 1237a16b7..bffdf22d7 100644 --- a/neutron/notifiers/nova.py +++ b/neutron/notifiers/nova.py @@ -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. """ diff --git a/neutron/openstack/common/systemd.py b/neutron/openstack/common/systemd.py index e1ba65688..cc02caba3 100644 --- a/neutron/openstack/common/systemd.py +++ b/neutron/openstack/common/systemd.py @@ -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) diff --git a/neutron/tests/unit/test_extension_ext_net.py b/neutron/tests/unit/test_extension_ext_net.py index 8633e245a..b525b9dd6 100644 --- a/neutron/tests/unit/test_extension_ext_net.py +++ b/neutron/tests/unit/test_extension_ext_net.py @@ -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)