Skip to content

Commit

Permalink
fix: don't append log format on other command than dbt
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Nov 14, 2024
1 parent 4a9e0da commit d006fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/kestra/plugin/dbt/cli/DbtCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public void accept(String line, Boolean isStdErr) {
List<String> commandsArgs = ScriptService.scriptCommands(
this.interpreter,
this.getBeforeCommandsWithOptions(),
runContext.render(this.commands).stream().map(command -> command.concat(" --log-format json")).toList()
runContext.render(this.commands).stream().map(command -> command.startsWith("dbt") ? command.concat(" --log-format json") : command).toList()
);

// check that if a command uses --project-dir, the projectDir must be set
Expand Down

0 comments on commit d006fa6

Please sign in to comment.