[trivial] fix typos in conductor

Change-Id: Ib431c3507cb4bdbd9ba30b58e30b078e855e7754
This commit is contained in:
Riccardo Pittau 2021-02-23 17:35:03 +01:00
parent 9c9c7c6b46
commit d5b5356d60
2 changed files with 4 additions and 4 deletions

View File

@ -3069,7 +3069,7 @@ class ConductorManager(base_manager.BaseConductorManager):
# or a token is present in general and needs to be
# validated.
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})
raise exception.InvalidParameterValue(
'Invalid or missing agent token received.')

View File

@ -1238,8 +1238,8 @@ def is_agent_token_valid(node, token):
"""Validates if a supplied token is valid for the node.
:param node: Node object
:token: A token value to validate against the driver_internal_info field
agent_sercret_token.
:param token: A token value to validate against the driver_internal_info
field agent_secret_token.
:returns: True if the supplied token matches the token recorded in the
supplied node object.
"""
@ -1287,7 +1287,7 @@ def make_salt():
def hash_password(password=''):
"""Hashes a supplied password.
:param value: Value to be hashed
:param password: password to be hashed
"""
return crypt.crypt(password, make_salt())