mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
3203858032
commit
28917ebdab
|
@ -95,7 +95,7 @@ func validateSingleResourceDefined(configRoot dyn.Value, ext, typ string) diag.D
|
||||||
for _, r := range resources {
|
for _, r := range resources {
|
||||||
lines = append(lines, fmt.Sprintf(" - %s (%s)\n", r.key, r.typ))
|
lines = append(lines, fmt.Sprintf(" - %s (%s)\n", r.key, r.typ))
|
||||||
}
|
}
|
||||||
// Sort the line s to print to make the output deterministic.
|
// Sort the lines to print to make the output deterministic.
|
||||||
sort.Strings(lines)
|
sort.Strings(lines)
|
||||||
// Compact the lines before writing them to the message to remove any duplicate lines.
|
// Compact the lines before writing them to the message to remove any duplicate lines.
|
||||||
// This is needed because we do not dedup earlier when gathering the resources
|
// This is needed because we do not dedup earlier when gathering the resources
|
||||||
|
|
Loading…
Reference in New Issue