From 08f8c880cb2b18ebe13fa2e8f8611cac0f50fcc2 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Fri, 15 Nov 2024 11:25:07 +0100 Subject: [PATCH] [chore] use 'test/template' for operator format templating Signed-off-by: odubajDT --- pkg/stanza/operator/output/file/config.go | 2 +- pkg/stanza/operator/output/file/output.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/operator/output/file/config.go b/pkg/stanza/operator/output/file/config.go index 510b95c49a7f..f27ac156fba8 100644 --- a/pkg/stanza/operator/output/file/config.go +++ b/pkg/stanza/operator/output/file/config.go @@ -5,7 +5,7 @@ package file // import "github.com/open-telemetry/opentelemetry-collector-contri import ( "fmt" - "html/template" + "text/template" "go.opentelemetry.io/collector/component" diff --git a/pkg/stanza/operator/output/file/output.go b/pkg/stanza/operator/output/file/output.go index 36552c50d99c..157a0d3414ec 100644 --- a/pkg/stanza/operator/output/file/output.go +++ b/pkg/stanza/operator/output/file/output.go @@ -6,9 +6,9 @@ package file // import "github.com/open-telemetry/opentelemetry-collector-contri import ( "context" "encoding/json" - "html/template" "os" "sync" + "text/template" "go.uber.org/zap"