]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixes misspelled words in Cinder
authorZhiteng Huang <zhithuang@ebaysf.com>
Thu, 15 Jan 2015 03:12:05 +0000 (11:12 +0800)
committerZhiteng Huang <zhithuang@ebaysf.com>
Thu, 15 Jan 2015 09:19:47 +0000 (17:19 +0800)
Fixes misspelled words found by 'misspellings' in one shot

* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I2b74c7f19f17ba566cfb734c012a8904f3e35e84

cinder/volume/drivers/emc/emc_vmax_utils.py
cinder/volume/drivers/huawei/rest_common.py
cinder/volume/drivers/remotefs.py
cinder/volume/drivers/srb.py
cinder/volume/drivers/xio.py
cinder/volume/targets/iser.py

index 82fc6b07fb73e69ce123e82f03f274997a4a34e1..20b2de58a3ed95a603741ed8926982b9ab6220e6 100644 (file)
@@ -1259,7 +1259,7 @@ class EMCVMAXUtils(object):
             # Something else that we cannot recover from has happened
             LOG.error(_LE("Exception: %s"), six.text_type(desc))
             exceptionMessage = (_(
-                "Cannot verify the existance of object:"
+                "Cannot verify the existence of object:"
                 "%(instanceName)s.")
                 % {'instanceName': instanceName})
             LOG.error(exceptionMessage)
index 7069268a3cc51139a13d1ce08e7ccbb3af8f2a8e..44509f85de02fbe3e3f9a94ff3a3625742c094fc 100644 (file)
@@ -614,8 +614,8 @@ class RestCommon():
         except Exception:
             with excutils.save_and_reraise_exception():
                 err_msg = (_LE(
-                    'Error occured when adding hostgroup and lungroup to view.'
-                    ' Remove lun from lungroup now.'))
+                    'Error occurred when adding hostgroup and lungroup to '
+                    'view. Remove lun from lungroup now.'))
                 LOG.error(err_msg)
                 self._remove_lun_from_lungroup(lungroup_id, lun_id)
 
index 5b00c1bcc3dc056057de0de57f16e813eb9afcf6..77d7755a8be8f80bc9755d81977feca11a1aaaec 100644 (file)
@@ -900,7 +900,7 @@ class RemoteFSSnapDriver(RemoteFSDriver):
                         'to be deleted.') % snapshot_path
                 LOG.warn(msg)
 
-                # Snapshot may be stale, so just delete it and update ther
+                # Snapshot may be stale, so just delete it and update the
                 # info file instead of blocking
                 return self._delete_stale_snapshot(snapshot)
 
index 7e1a43d24a67c2a04d3eb37d4e869b42111f0152..20451fc671f1ba9bc010464c0a39891a1eeb5e7c 100644 (file)
@@ -246,7 +246,7 @@ def handle_process_execution_error(message, info_message, reraise=True):
     the command string, exit code, standard output and error output of the
     process will be logged at `logging.DEBUG` level.
 
-    The `reraise` argument specifies what should happend when a
+    The `reraise` argument specifies what should happen when a
     `putils.ProcessExecutionError` is caught. If it's equal to `True`, the
     exception will be re-raised. If it's some other non-`False` object, this
     object will be raised instead (so you most likely want it to be some
index 9a4f4967d3027e099e0db3816ac1066586e124c9..1db7af3f58226c52eff416c27f1181e40862b79b 100644 (file)
@@ -119,7 +119,7 @@ class XIOISEDriver(object):
             msg = _LE("Array query failed - No response (%d)!") % status
             LOG.error(msg)
             RaiseXIODriverException()
-        # succesfully fetched QUERY info. Parse out globalid along with
+        # Successfully fetched QUERY info. Parse out globalid along with
         # ipaddress for Controller 1 and Controller 2. We assign primary
         # ipaddress to use based on controller rank
         xml_tree = etree.fromstring(resp['content'])
@@ -830,7 +830,7 @@ class XIOISEDriver(object):
             msg = _LE("POST for host create failed (%s)!") % status
             LOG.error(msg)
             RaiseXIODriverException()
-        # succesfully created host entry. Return host name.
+        # Successfully created host entry. Return host name.
         return hostname
 
     def _create_clone(self, volume, clone, clone_type):
index a01951e5022bde3d2b2f91d504c09c0ab5566094..ec730d605cebb496001582a3a55536cca3e9d2a7 100644 (file)
@@ -42,7 +42,7 @@ class ISERTgtAdm(TgtAdm):
         self.volumes_dir = self.configuration.safe_get('volumes_dir')
         self.protocol = 'iSER'
 
-        # backward compatability mess
+        # backwards compatibility mess
         self.configuration.num_volume_device_scan_tries = \
             self.configuration.num_iser_scan_tries
         self.configuration.iscsi_num_targets = \