From 92696c11e9f4db675ecb1fa51edef0eed26ecf91 Mon Sep 17 00:00:00 2001 From: William Dumont Date: Fri, 15 Nov 2024 12:59:37 +0100 Subject: [PATCH] Update internal/component/otelcol/receiver/solace/solace.go Co-authored-by: Piotr <17101802+thampiotr@users.noreply.github.com> --- internal/component/otelcol/receiver/solace/solace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/component/otelcol/receiver/solace/solace.go b/internal/component/otelcol/receiver/solace/solace.go index 039144e10..5895d1c9b 100644 --- a/internal/component/otelcol/receiver/solace/solace.go +++ b/internal/component/otelcol/receiver/solace/solace.go @@ -115,7 +115,7 @@ func (args *Arguments) Validate() error { authMethod++ } if authMethod != 1 { - return fmt.Errorf("the auth block must contain either a sasl_plain block, a sasl_xauth2 block or a sasl_external block") + return fmt.Errorf("the auth block must contain exactly one of sasl_plain block, sasl_xauth2 block or sasl_external block") } if len(strings.TrimSpace(args.Queue)) == 0 { return fmt.Errorf("queue must not be empty, queue definition has format queue://")