diff --git a/command/meta.go b/command/meta.go index 854cc954b788..9f553da62199 100644 --- a/command/meta.go +++ b/command/meta.go @@ -480,6 +480,9 @@ func (m *Meta) showDiagnostics(vals ...interface{}) { diags = diags.Append(vals...) diags.Sort() + // Since warning messages are generally competing + diags = diags.ConsolidateWarnings() + for _, diag := range diags { // TODO: Actually measure the terminal width and pass it here. // For now, we don't have easy access to the writer that