From b07d08926576125805e4cd9e4de34f33bb49c305 Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Thu, 12 Sep 2024 21:19:30 +0200 Subject: [PATCH] chore(cmd): Align plugin deprecation messages (#15867) --- cmd/telegraf/printer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/telegraf/printer.go b/cmd/telegraf/printer.go index c165f65e7..02428125c 100644 --- a/cmd/telegraf/printer.go +++ b/cmd/telegraf/printer.go @@ -267,7 +267,7 @@ func printFilteredInputs(inputFilters []string, commented bool, outputBuffer io. for _, pname := range pnames { // Skip inputs that are registered twice for backward compatibility switch pname { - case "cisco_telemetry_gnmi", "io", "KNXListener": + case "cisco_telemetry_gnmi", "http_listener", "io", "KNXListener": continue } creator := inputs.Inputs[pname] @@ -364,7 +364,7 @@ func printConfig(name string, p telegraf.PluginDescriber, op string, commented b if di.RemovalIn != "" { removalNote = " and will be removed in " + di.RemovalIn } - fmt.Fprintf(outputBuffer, "\n%s ## DEPRECATED: The %q plugin is deprecated in version %s%s, %s.", + fmt.Fprintf(outputBuffer, "\n%s## DEPRECATED: The %q plugin is deprecated in version %s%s, %s.", comment, name, di.Since, removalNote, di.Notice) }