[trivial] fix typos in conductor
Change-Id: Ib431c3507cb4bdbd9ba30b58e30b078e855e7754
This commit is contained in:
parent
9c9c7c6b46
commit
d5b5356d60
|
@ -3069,7 +3069,7 @@ class ConductorManager(base_manager.BaseConductorManager):
|
||||||
# or a token is present in general and needs to be
|
# or a token is present in general and needs to be
|
||||||
# validated.
|
# validated.
|
||||||
if not utils.is_agent_token_valid(task.node, agent_token):
|
if not utils.is_agent_token_valid(task.node, agent_token):
|
||||||
LOG.error('Invalid or missing agent_token receieved for '
|
LOG.error('Invalid or missing agent_token received for '
|
||||||
'node %(node)s', {'node': node_id})
|
'node %(node)s', {'node': node_id})
|
||||||
raise exception.InvalidParameterValue(
|
raise exception.InvalidParameterValue(
|
||||||
'Invalid or missing agent token received.')
|
'Invalid or missing agent token received.')
|
||||||
|
|
|
@ -1238,8 +1238,8 @@ def is_agent_token_valid(node, token):
|
||||||
"""Validates if a supplied token is valid for the node.
|
"""Validates if a supplied token is valid for the node.
|
||||||
|
|
||||||
:param node: Node object
|
:param node: Node object
|
||||||
:token: A token value to validate against the driver_internal_info field
|
:param token: A token value to validate against the driver_internal_info
|
||||||
agent_sercret_token.
|
field agent_secret_token.
|
||||||
:returns: True if the supplied token matches the token recorded in the
|
:returns: True if the supplied token matches the token recorded in the
|
||||||
supplied node object.
|
supplied node object.
|
||||||
"""
|
"""
|
||||||
|
@ -1287,7 +1287,7 @@ def make_salt():
|
||||||
def hash_password(password=''):
|
def hash_password(password=''):
|
||||||
"""Hashes a supplied password.
|
"""Hashes a supplied password.
|
||||||
|
|
||||||
:param value: Value to be hashed
|
:param password: password to be hashed
|
||||||
"""
|
"""
|
||||||
return crypt.crypt(password, make_salt())
|
return crypt.crypt(password, make_salt())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue