Skip to content

Commit 624c079

Browse files
authored
fix: replace deprecated Property<> constructor with Property.ofValue/ofExpression (#86)
* fix: replace deprecated Property<> constructor with Property.ofValue/ofExpression * fix: correct Property.ofValue/ofExpression type mismatches and rendering issues * fix: use ofExpression for values containing Pebble expressions --------- Co-authored-by: François Delbrayelle <fdelbrayelle@kestra.io>
1 parent 3678663 commit 624c079

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/kestra/plugin/soda/AbstractSoda.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public CommandsWrapper start(RunContext runContext) throws Exception {
155155
)
156156
)
157157
.withInterpreter(Property.ofValue(List.of("/bin/sh", "-c")))
158-
.withCommands(new Property<>(JacksonMapper.ofJson().writeValueAsString(commands)));
158+
.withCommands(Property.ofExpression(JacksonMapper.ofJson().writeValueAsString(commands)));
159159
}
160160

161161
private DockerOptions injectDefaults(DockerOptions original) {

0 commit comments

Comments
 (0)