Trivial fix typos while reading code
Change-Id: Id7785bc448d92935d94d9babb667c2733002dd35
This commit is contained in:
@@ -36,7 +36,7 @@ class CinderObjectVersionsHistory(dict):
|
|||||||
"""Helper class that maintains objects version history.
|
"""Helper class that maintains objects version history.
|
||||||
|
|
||||||
Current state of object versions is aggregated in a single version number
|
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
|
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.
|
the newer services will know exactly what that mean for a single object.
|
||||||
"""
|
"""
|
||||||
|
@@ -392,7 +392,7 @@ class HostManager(object):
|
|||||||
"""Return a list of available filter names.
|
"""Return a list of available filter names.
|
||||||
|
|
||||||
This function checks input filter names against a predefined set
|
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.
|
it uses CONF.scheduler_default_filters instead.
|
||||||
"""
|
"""
|
||||||
if filter_cls_names is None:
|
if filter_cls_names is None:
|
||||||
@@ -486,7 +486,7 @@ class HostManager(object):
|
|||||||
LOG.info('Ignoring old capability report from %s.', backend)
|
LOG.info('Ignoring old capability report from %s.', backend)
|
||||||
return
|
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.
|
# record the capabilities.
|
||||||
|
|
||||||
# There are cases: capab_old has the capabilities set,
|
# There are cases: capab_old has the capabilities set,
|
||||||
|
@@ -399,7 +399,7 @@ class RPCAPITestCase(TestCase, ModelsObjectComparatorMixin):
|
|||||||
:param server: Expected hostname.
|
:param server: Expected hostname.
|
||||||
:param fanout: True if expected call/cast should be fanout.
|
:param fanout: True if expected call/cast should be fanout.
|
||||||
:param version: Expected autocalculated RPC API version.
|
: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
|
:param expected_kwargs_diff: Map of expected changes between keyword
|
||||||
arguments passed into the method and sent
|
arguments passed into the method and sent
|
||||||
over RPC.
|
over RPC.
|
||||||
|
@@ -94,7 +94,7 @@ class API(base.Base):
|
|||||||
# Note that the string returned by this function must contain only
|
# Note that the string returned by this function must contain only
|
||||||
# characters that the recipient can enter on their keyboard. The
|
# characters that the recipient can enter on their keyboard. The
|
||||||
# function ssh224().hexdigit() achieves this by generating a hash
|
# 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:
|
while len(rndstr) < length:
|
||||||
rndstr += hashlib.sha224(os.urandom(255)).hexdigest()
|
rndstr += hashlib.sha224(os.urandom(255)).hexdigest()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user