Executor: pass arguments to actions
This commit is contained in:
parent
5e9d8847ea
commit
12b6c7b338
|
@ -31,7 +31,7 @@ class Executor:
|
||||||
try:
|
try:
|
||||||
action = ActionRegistry.get_action_cls(step.task.type)(parameters=step.task.parameters)
|
action = ActionRegistry.get_action_cls(step.task.type)(parameters=step.task.parameters)
|
||||||
action.parse_parameters_with_arguments(**self._arguments)
|
action.parse_parameters_with_arguments(**self._arguments)
|
||||||
step.result = action.execute(workspace=self._execution.workspace)
|
step.result = action.execute(workspace=self._execution.workspace, arguments=self._arguments)
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
# Catch unhandled exceptions, mark the result as unsuccessful
|
# Catch unhandled exceptions, mark the result as unsuccessful
|
||||||
# and append the error as output.
|
# and append the error as output.
|
||||||
|
|
Reference in New Issue