Skip to content

Commit

Permalink
[Backport 2.x] Fix bug passing params to workflows (opensearch-projec…
Browse files Browse the repository at this point in the history
…t#560)

Fix bug passing params to workflows (opensearch-project#559)


(cherry picked from commit 4bf6e32)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 2fcabf8 commit 763f1c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ protected void doExecute(Task task, WorkflowRequest request, ActionListener<Work
if (request.isProvision()) {
WorkflowRequest workflowRequest = new WorkflowRequest(
globalContextResponse.getId(),
null
null,
request.getParams()
);
logger.info(
"Provisioning parameter is set, continuing to provision workflow {}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public List<ProcessNode> sortProcessNodes(Workflow workflow, String workflowId,
ProcessNode processNode = new ProcessNode(
node.id(),
step,
params,
node.previousNodeInputs(),
params,
data,
predecessorNodes,
threadPool,
Expand Down

0 comments on commit 763f1c1

Please sign in to comment.