]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix misspellings in cinder
authorShane Wang <shane.wang@intel.com>
Fri, 7 Feb 2014 06:45:43 +0000 (14:45 +0800)
committerShane Wang <shane.wang@intel.com>
Sat, 8 Feb 2014 00:59:01 +0000 (08:59 +0800)
Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I4780a9cdd4a2aff5a3dbc55c87e93b0972d907db
Closes-Bug: #1257295

cinder/scheduler/flows/create_volume.py
cinder/scheduler/weights/capacity.py
cinder/tests/test_exception.py
cinder/volume/drivers/netapp/iscsi.py
cinder/volume/manager.py

index 805622af29f8fb179a915fc34b0d8610b6185713..c8f00bedab00505389034ede2390365827feee0d 100644 (file)
@@ -89,7 +89,7 @@ def get_flow(context, db, driver, request_spec=None,
     1. Inject keys & values for dependent tasks.
     2. Extracts a scheduler specification from the provided inputs.
     3. Attaches 2 activated only on *failure* tasks (one to update the db
-       status and one to notify on the MQ of the failure that occured).
+       status and one to notify on the MQ of the failure that occurred).
     4. Uses provided driver to to then select and continue processing of
        volume request.
     """
index d4f20b5e38afb4105d62db451cbf8ff90ffda635..099c58d2119401408e8079f115318a4c4829cab9 100644 (file)
@@ -28,7 +28,7 @@ number and the weighing has the opposite effect of the default.
 The default behavior is to place new volume to the host allocated the least
 space.  This weigher is intended to simulate the behavior of SimpleScheduler.
 If you prefer to place volumes to host allocated the most space, you can
-set the 'allocated_capacity_weight_multiplier' option to a postive number
+set the 'allocated_capacity_weight_multiplier' option to a positive number
 and the weighing has the opposite effect of the default.
 """
 
index f4c5f4800282cd681b1ae38b1c21c75d7bf91b72..560e3d83df3a48cc8151079710172449a0ede67e 100644 (file)
@@ -71,10 +71,10 @@ class CinderExceptionTestCase(test.TestCase):
         self.flags(fatal_exception_format_errors=False)
 
         class FakeCinderException(exception.CinderException):
-            message = "default message: %(mispelled_code)s"
+            message = "default message: %(misspelled_code)s"
 
         exc = FakeCinderException(code=500)
-        self.assertEqual(unicode(exc), 'default message: %(mispelled_code)s')
+        self.assertEqual(unicode(exc), 'default message: %(misspelled_code)s')
 
     def test_default_error_code(self):
         class FakeCinderException(exception.CinderException):
index 50581cf898a7cf277303c402b67b4046569affee..a8c18996b3a071ca9a217ec6244b2880a651a720 100644 (file)
@@ -229,7 +229,7 @@ class NetAppDirectISCSIDriver(driver.ISCSIDriver):
         LOG.debug(msg % msg_fmt)
         iqn = self._get_iscsi_service_details()
         target_details_list = self._get_target_details()
-        msg = _("Succesfully fetched target details for LUN %(name)s and "
+        msg = _("Successfully fetched target details for LUN %(name)s and "
                 "initiator %(initiator_name)s")
         msg_fmt = {'name': name, 'initiator_name': initiator_name}
         LOG.debug(msg % msg_fmt)
index 0b4e7a9d37bb7eca34561c8068e5d513aa34eb22..c88c1955339c5a11281f7479ac091e9bb506262e 100644 (file)
@@ -1218,7 +1218,7 @@ class VolumeManager(manager.SchedulerDependentManager):
                 retyped = self.driver.retype(context, volume_ref, new_type,
                                              diff, host)
                 if retyped:
-                    LOG.info(_("Volume %s: retyped succesfully"), volume_id)
+                    LOG.info(_("Volume %s: retyped successfully"), volume_id)
             except Exception as ex:
                 retyped = False
                 LOG.error(_("Volume %s: driver error when trying to retype, "