[refactoring] simplify signature of _finish function
This is a follow-up to commit e05257035c
.
Change-Id: Ia05f533c3c14d926b3c524175260cfcf0bb09e1e
This commit is contained in:
parent
3a3d344706
commit
a46e708160
|
@ -282,7 +282,8 @@ def _process_node(node_info, node, introspection_data):
|
|||
return resp
|
||||
|
||||
|
||||
def _finish_common(node_info, ironic, introspection_data, power_off=True):
|
||||
@node_cache.fsm_transition(istate.Events.finish)
|
||||
def _finish(node_info, ironic, introspection_data, power_off=True):
|
||||
if power_off:
|
||||
LOG.debug('Forcing power off of node %s', node_info.uuid)
|
||||
try:
|
||||
|
@ -309,9 +310,6 @@ def _finish_common(node_info, ironic, introspection_data, power_off=True):
|
|||
node_info=node_info, data=introspection_data)
|
||||
|
||||
|
||||
_finish = node_cache.fsm_transition(istate.Events.finish)(_finish_common)
|
||||
|
||||
|
||||
def reapply(node_ident):
|
||||
"""Re-apply introspection steps.
|
||||
|
||||
|
|
Loading…
Reference in New Issue