Skip to content

Commit

Permalink
fix: move interpreter to dynamic (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgabelle authored Jan 22, 2025
1 parent dfeff85 commit 7427e48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -398,7 +398,7 @@ public void accept(String line, Boolean isStdErr) {

//Create and run commands
List<String> commandsArgs = ScriptService.scriptCommands(
this.interpreter,
runContext.render(this.interpreter).asList(String.class),
this.getBeforeCommandsWithOptions(runContext),
runContext.render(this.commands).stream().map(command -> command.startsWith("dbt") ? command.concat(" --log-format json") : command).toList()
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/kestra/plugin/dbt/cli/Setup.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public ScriptOutput run(RunContext runContext) throws Exception {
);

List<String> commandsArgs = ScriptService.scriptCommands(
this.interpreter,
runContext.render(this.interpreter).asList(String.class),
this.getBeforeCommandsWithOptions(runContext),
commands
);
Expand Down

0 comments on commit 7427e48

Please sign in to comment.