Skip to content

Commit

Permalink
fixing workflowrequest
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis committed Aug 5, 2024
1 parent aa2ce8a commit 8ffa29d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public WorkflowRequest(StreamInput in) throws IOException {
this.params = provisionOrUpdateOrReprovision
? in.readMap(StreamInput::readString, StreamInput::readString)
: Collections.emptyMap();
this.provision = provisionOrUpdateOrReprovision && params.isEmpty();
this.provision = provisionOrUpdateOrReprovision && !params.containsKey(UPDATE_WORKFLOW_FIELDS) && !params.containsKey(REPROVISION_WORKFLOW);
this.updateFields = !provision && Boolean.parseBoolean(params.get(UPDATE_WORKFLOW_FIELDS));
if (this.updateFields) {
this.params = Collections.emptyMap();
Expand Down

0 comments on commit 8ffa29d

Please sign in to comment.