Fix two typos

This fixes a docstring typo and a log message typo.

Change-Id: I6072a115dd75f4e28911e56239c739f35c674ee6
This commit is contained in:
Zhenguo Niu 2015-03-11 21:15:56 +08:00 committed by Jim Rollenhagen
parent 00dfc4c5c3
commit f8e3895a1f
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ class TaskManager(object):
:param event: the name of the event to process
:param callback: optional callback to invoke upon event transition
:param call_args: optional *args to pass to the callback method
:param call_kwargs: optional **kwargs to pass to to the callback method
:param call_kwargs: optional **kwargs to pass to the callback method
:param err_handler: optional error handler to invoke if the
callback fails, eg. because there are no workers available
(err_handler should accept arguments node, prev_prov_state, and

View File

@ -121,7 +121,7 @@ def node_power_action(task, new_state):
else:
# success!
node['power_state'] = target_state
LOG.info(_LI('Succesfully set node %(node)s power state to '
LOG.info(_LI('Successfully set node %(node)s power state to '
'%(state)s.'),
{'node': node.uuid, 'state': target_state})
finally: