Trivial fix typos while reading code

Change-Id: Id7785bc448d92935d94d9babb667c2733002dd35
This commit is contained in:
Ngo Quoc Cuong 2017-05-04 10:27:57 +07:00
parent 4aa2a2a74a
commit 64eeff2e90
4 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ class CinderObjectVersionsHistory(dict):
"""Helper class that maintains objects version history.
Current state of object versions is aggregated in a single version number
that explicitily identifies a set of object versions. That way a service
that explicitly identifies a set of object versions. That way a service
is able to report what objects it supports using a single string and all
the newer services will know exactly what that mean for a single object.
"""

View File

@ -392,7 +392,7 @@ class HostManager(object):
"""Return a list of available filter names.
This function checks input filter names against a predefined set
of acceptable filterss (all loaded filters). If input is None,
of acceptable filters (all loaded filters). If input is None,
it uses CONF.scheduler_default_filters instead.
"""
if filter_cls_names is None:
@ -486,7 +486,7 @@ class HostManager(object):
LOG.info('Ignoring old capability report from %s.', backend)
return
# If the capabilites are not changed and the timestamp is older,
# If the capabilities are not changed and the timestamp is older,
# record the capabilities.
# There are cases: capab_old has the capabilities set,

View File

@ -399,7 +399,7 @@ class RPCAPITestCase(TestCase, ModelsObjectComparatorMixin):
:param server: Expected hostname.
:param fanout: True if expected call/cast should be fanout.
:param version: Expected autocalculated RPC API version.
:param epected_method: Expected RPC method name.
:param expected_method: Expected RPC method name.
:param expected_kwargs_diff: Map of expected changes between keyword
arguments passed into the method and sent
over RPC.

View File

@ -94,7 +94,7 @@ class API(base.Base):
# Note that the string returned by this function must contain only
# characters that the recipient can enter on their keyboard. The
# function ssh224().hexdigit() achieves this by generating a hash
# which will only contain hexidecimal digits.
# which will only contain hexadecimal digits.
while len(rndstr) < length:
rndstr += hashlib.sha224(os.urandom(255)).hexdigest()