Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -
Change-Id: I4780a9cdd4a2aff5a3dbc55c87e93b0972d907db
Closes-Bug: #
1257295
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.
"""
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.
"""
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):
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)
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, "