Skip to content

Commit b6eb624

Browse files
k1sauceKyle
andauthored
fix: labels-import, pass the type info to the mapper (#396)
Co-authored-by: Kyle <[email protected]>
1 parent 38c325e commit b6eb624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/seqera/tower/cli/shared/ComputeEnvExportFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ public ComputeEnvExportFormat deserialize(JsonParser parser, DeserializationCont
129129
return new ComputeEnvExportFormat(cfg, labelDbDtos);
130130
}
131131

132-
private static <T> T extractJsonNodeValue(JsonNode root, String nodeName, ObjectMapper mapper) throws JsonProcessingException {
132+
private static List<LabelDbDto> extractJsonNodeValue(JsonNode root, String nodeName, ObjectMapper mapper) throws JsonProcessingException {
133133
JsonNode node = root.get(nodeName);
134134
if (node != null) {
135-
return mapper.readValue(node.toString(), new TypeReference<>() {});
135+
return mapper.readValue(node.toString(), new TypeReference<List<LabelDbDto>>() {});
136136
}
137137
return null;
138138
}

0 commit comments

Comments
 (0)