]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix common misspellings
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 19 Mar 2015 16:25:57 +0000 (17:25 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 24 Mar 2015 10:44:15 +0000 (11:44 +0100)
Wikipedia's list of common misspellings [1] has a machine-readable
version.  This patch fixes those misspellings mentioned in the list
which don't have multiple right variants (as e.g. "accension", which can
be both "accession" and "ascension"), such misspellings are left
untouched.  The list of changes was manually re-checked for false
positives.

[1] https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

Partial-Bug: #1390035
Change-Id: Ie5d86247cc4f50b6578a9b76c9c8cade35128d5a
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
doc/source/docbkx/quantum-api-1.0/common.ent
doc/source/docbkx/quantum-api-1.0/xsd/actions.xsd
doc/source/docbkx/quantum-api-1.0/xsd/common.xsd
doc/source/docbkx/quantum-api-1.0/xsd/server.xsd
neutron/agent/l3/namespace_manager.py
neutron/agent/linux/iptables_firewall.py
neutron/tests/tools.py

index 19acc7e9f0bf4a54b13b14125025f21ff759d248..67e512af5718462e02298732790072450c625f47 100644 (file)
         </response>
         <response status="503" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:serviceUnavailable"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
         <response status="401" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:unauthorized"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
         <response status="403" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:forbidden"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
         <response status="400" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:badRequest"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
         <response status="405" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:badMethod"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
         <response status="413" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:overLimit"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
            '>
       <!--
@@ -41,7 +41,7 @@
            '
         <response status="404" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:itemNotFound"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
            '>
       <!--
@@ -51,7 +51,7 @@
            '
         <response status="415" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:badMediaType"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
            '>
       <!--
@@ -61,7 +61,7 @@
            '
         <response status="503" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:serverCapacityUnavailable"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
            '>
       <!--
@@ -72,7 +72,7 @@
            '
         <response status="409" xmlns="http://wadl.dev.java.net/2009/02">
             <representation mediaType="application/xml" element="osapi:buildInProgress"/>
-            <representation mediaType="applicaiton/json"/>
+            <representation mediaType="application/json"/>
         </response>
            '>
 
index 41545111d24fc0a5dd847ab4cc0d197224e784ed..c156f1665703e746f181ae508116e4f62a40ff63 100644 (file)
                       <p>
                           A reference to an image to use for the
                           rebuild.  A local image need contain only an
-                          Image ID. External images must contian a
+                          Image ID. External images must contain a
                           link that provides the full path to the
                           image resource.  You must supply an image
                           when rebuilding.
index f60999ebd2c1e5305a88865285e7a53642313ba6..703ef24dcf0094eff3274cef4490c7a580972dc2 100644 (file)
               xml:lang="EN"
               xmlns="http://www.w3.org/1999/xhtml">
               <p>
-                  An extended status must contian a prefix.
+                  An extended status must contain a prefix.
               </p>
           </xsd:documentation>
       </annotation>
index 035d9f324fc77ff972b3d4c9a456257d461321ab..fb89fd9fe1560795aa2df2c5146e4d67ce0fec4a 100644 (file)
                   xmlns="http://www.w3.org/1999/xhtml">
                   <p>
                       A reference to an image used to create the
-                      server. External images must contian a link that
+                      server. External images must contain a link that
                       provides the full path to the image resource.
                   </p>
               </xsd:documentation>
index 52333f0c248b61cce776c1297eb83b49453ad220..0f552d78c5a40ccd9e7a84b33d62497465d73e3b 100644 (file)
@@ -63,7 +63,7 @@ class NamespaceManager(object):
         # TODO(carl) Preserves old behavior of L3 agent where cleaning
         # namespaces was only done once after restart.  Still a good idea?
         if exc_type:
-            # An exception occured in the caller's with statement
+            # An exception occurred in the caller's with statement
             return False
         if not self._clean_stale:
             # No need to cleanup
index 0fa77b8a61df5baebb6c86f8d0c5a8af4a26b476..613c49fd63f594d89f73d147d3efcdd640107195 100644 (file)
@@ -567,7 +567,7 @@ class IptablesFirewallDriver(firewall.FirewallDriver):
             self._defer_apply = True
 
     def _remove_unused_security_group_info(self):
-        """Remove any unnecesary local security group info or unused ipsets.
+        """Remove any unnecessary local security group info or unused ipsets.
 
         This function has to be called after applying the last iptables
         rules, so we're in a point where no iptable rule depends
@@ -618,7 +618,7 @@ class IptablesFirewallDriver(firewall.FirewallDriver):
     def _determine_sg_rules_to_remove(self, filtered_ports):
         """Calculate which security groups need to be removed.
 
-        We find out by substracting our previous sg group ids,
+        We find out by subtracting our previous sg group ids,
         with the security groups associated to a set of ports.
         """
         port_group_ids = self._get_sg_ids_set_for_ports(filtered_ports)
index 59381ea739ce4ea6c8682ad42b34f8d52416f6d9..16aa49680536490cccfa3c0f480f31a4d04dc159 100644 (file)
@@ -49,7 +49,7 @@ def verify_mock_calls(mocked_call, expected_calls_and_values,
 
 
 def fail(msg=None):
-    """Fail immediatly, with the given message.
+    """Fail immediately, with the given message.
 
     This method is equivalent to TestCase.fail without requiring a
     testcase instance (usefully for reducing coupling).