Skip to content

Commit

Permalink
fix(event-hub): render body in Produce task
Browse files Browse the repository at this point in the history
closes #128

(cherry picked from commit b105f75)
  • Loading branch information
brian-mulier-p committed Aug 29, 2024
1 parent 3c66fde commit 21c8f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/kestra/plugin/azure/eventhubs/Produce.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ Output run(final RunContext runContext, final EventHubProducerService service) t
if (this.getFrom() instanceof String uri) {
is = reader.get(runContext.render(uri));
} else if (this.getFrom() instanceof Map data) {
is = reader.get(data);
is = reader.get(runContext.render(data));
} else if (this.getFrom() instanceof List data) {
is = reader.get(data);
is = reader.get(runContext.render(data));
} else {
throw new IllegalArgumentException(
"Unsupported type for task-property `from`: " + this.getFrom().getClass().getSimpleName()
Expand Down

0 comments on commit 21c8f73

Please sign in to comment.