You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
everything is ok New AWS-BATCH compute environment 'test1' added at [ClearNote_Health / discovery-pipeline-prod] workspace
however when I am trying to use a pre-existing resource label
tw compute-envs import -n test1 test.json
I get the following error
java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to io.seqera.tower.model.LabelDbDto
at [email protected]/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at [email protected]/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at [email protected]/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at [email protected]/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at io.seqera.tower.cli.commands.computeenvs.ImportCmd.exec(ImportCmd.java:68)
at io.seqera.tower.cli.commands.AbstractApiCmd.call(AbstractApiCmd.java:413)
at io.seqera.tower.cli.commands.AbstractApiCmd.call(AbstractApiCmd.java:65)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at io.seqera.tower.cli.Tower.main(Tower.java:99)
The only difference between the two input json files is the addition of the label field
As the title says when I am trying to make a compute environment via
tw compute-envs import -n test1 test-no-label.json
everything is ok
New AWS-BATCH compute environment 'test1' added at [ClearNote_Health / discovery-pipeline-prod] workspace
however when I am trying to use a pre-existing resource label
tw compute-envs import -n test1 test.json
I get the following error
The only difference between the two input json files is the addition of the label field
Seqera Platform version: 23.4.3_46971e7
Tower CLI version: 0.9.2 (build 39a2ec6)
I suspect the error is related to how the stream / map is implemented here
tower-cli/src/main/java/io/seqera/tower/cli/commands/computeenvs/ImportCmd.java
Line 67 in 2d10b5b
The text was updated successfully, but these errors were encountered: