From e8cf3724e0d8b9f06cd5cab2076f6bbeec34f52f Mon Sep 17 00:00:00 2001 From: Mathieu Gabelle <54168385+mgabelle@users.noreply.github.com> Date: Thu, 2 Jan 2025 10:56:52 +0100 Subject: [PATCH] refactor: migrate cli dynamic properties (#166) --- src/main/java/io/kestra/plugin/azure/cli/AzCLI.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/kestra/plugin/azure/cli/AzCLI.java b/src/main/java/io/kestra/plugin/azure/cli/AzCLI.java index 08da824..69f17c6 100644 --- a/src/main/java/io/kestra/plugin/azure/cli/AzCLI.java +++ b/src/main/java/io/kestra/plugin/azure/cli/AzCLI.java @@ -167,13 +167,14 @@ public class AzCLI extends Task implements RunnableTask, Namespace private Object inputFiles; - private List outputFiles; + private Property> outputFiles; @Override public ScriptOutput run(RunContext runContext) throws Exception { List loginCommands = this.getLoginCommands(runContext); var renderedEnv = runContext.render(this.env).asMap(String.class, String.class); + var renderedOutputFiles = runContext.render(this.outputFiles).asList(String.class); CommandsWrapper commands = new CommandsWrapper(runContext) .withWarningOnStdErr(true) @@ -189,7 +190,7 @@ public ScriptOutput run(RunContext runContext) throws Exception { .withEnv(renderedEnv.isEmpty() ? null : renderedEnv) .withNamespaceFiles(namespaceFiles) .withInputFiles(inputFiles) - .withOutputFiles(outputFiles); + .withOutputFiles(renderedOutputFiles.isEmpty() ? null : renderedOutputFiles); return commands.run(); }