Skip to content

Commit

Permalink
Limit to 10 fields
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusum committed Sep 20, 2024
1 parent 560764b commit f1659b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ private static void validatePagedAttributes(DeployLogger logger, String clusterN
}

private static String join(List<Attribute> fields) {
return fields.stream()
var ret = fields.stream()
.map(Attribute::getName)
.map(s -> "'" + s + "'")
.collect(Collectors.joining(", "));
return ret + ((fields.size() > 10) ? ", ..." : "");
}

private static Set<Attribute> pagedAttributes(ImmutableSDField field) {
Expand Down

0 comments on commit f1659b6

Please sign in to comment.