From c0f8647eb11f7b347bb3119c1aded2843d99b069 Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:37:59 +0100 Subject: [PATCH] chore(processors.aws_ec2): Rename processor to adhere to the standard directory structure (#14780) --- plugins/processors/all/aws_ec2.go | 2 +- plugins/processors/{aws/ec2 => aws_ec2}/README.md | 0 plugins/processors/{aws/ec2 => aws_ec2}/ec2.go | 4 ++-- plugins/processors/{aws/ec2 => aws_ec2}/ec2_test.go | 2 +- plugins/processors/{aws/ec2 => aws_ec2}/sample.conf | 0 tools/custom_builder/packages.go | 8 -------- 6 files changed, 4 insertions(+), 12 deletions(-) rename plugins/processors/{aws/ec2 => aws_ec2}/README.md (100%) rename plugins/processors/{aws/ec2 => aws_ec2}/ec2.go (99%) rename plugins/processors/{aws/ec2 => aws_ec2}/ec2_test.go (99%) rename plugins/processors/{aws/ec2 => aws_ec2}/sample.conf (100%) diff --git a/plugins/processors/all/aws_ec2.go b/plugins/processors/all/aws_ec2.go index c040157fc..5012c413d 100644 --- a/plugins/processors/all/aws_ec2.go +++ b/plugins/processors/all/aws_ec2.go @@ -2,4 +2,4 @@ package all -import _ "github.com/influxdata/telegraf/plugins/processors/aws/ec2" // register plugin +import _ "github.com/influxdata/telegraf/plugins/processors/aws_ec2" // register plugin diff --git a/plugins/processors/aws/ec2/README.md b/plugins/processors/aws_ec2/README.md similarity index 100% rename from plugins/processors/aws/ec2/README.md rename to plugins/processors/aws_ec2/README.md diff --git a/plugins/processors/aws/ec2/ec2.go b/plugins/processors/aws_ec2/ec2.go similarity index 99% rename from plugins/processors/aws/ec2/ec2.go rename to plugins/processors/aws_ec2/ec2.go index 4090d8b52..66fc82829 100644 --- a/plugins/processors/aws/ec2/ec2.go +++ b/plugins/processors/aws_ec2/ec2.go @@ -1,5 +1,5 @@ -//go:generate ../../../../tools/readme_config_includer/generator -package ec2 +//go:generate ../../../tools/readme_config_includer/generator +package aws_ec2 import ( "context" diff --git a/plugins/processors/aws/ec2/ec2_test.go b/plugins/processors/aws_ec2/ec2_test.go similarity index 99% rename from plugins/processors/aws/ec2/ec2_test.go rename to plugins/processors/aws_ec2/ec2_test.go index 385f535f9..7f4254731 100644 --- a/plugins/processors/aws/ec2/ec2_test.go +++ b/plugins/processors/aws_ec2/ec2_test.go @@ -1,4 +1,4 @@ -package ec2 +package aws_ec2 import ( "testing" diff --git a/plugins/processors/aws/ec2/sample.conf b/plugins/processors/aws_ec2/sample.conf similarity index 100% rename from plugins/processors/aws/ec2/sample.conf rename to plugins/processors/aws_ec2/sample.conf diff --git a/tools/custom_builder/packages.go b/tools/custom_builder/packages.go index fb058f2a2..ddc5db41a 100644 --- a/tools/custom_builder/packages.go +++ b/tools/custom_builder/packages.go @@ -49,14 +49,6 @@ var exceptions = map[string][]packageInfo{ Tag: "parsers.influx", }, }, - "processors": { - { - Category: "processors", - Plugin: "aws_ec2", - Path: "plugins/processors/aws/ec2", - Tag: "processors.aws_ec2", - }, - }, } func (p *packageCollection) collectPackagesForCategory(category string) error {