From 196245c22c9f55350bdc063bd3cd4e32968d3c76 Mon Sep 17 00:00:00 2001 From: Roomba Date: Mon, 29 Jul 2024 07:08:06 +0200 Subject: [PATCH] remove redundant parameter grab call, we already have it from the getparamsbypathwctx() (#3722) --- pkg/provider/aws/parameterstore/parameterstore.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/provider/aws/parameterstore/parameterstore.go b/pkg/provider/aws/parameterstore/parameterstore.go index 4b52bf0c5..84e67181a 100644 --- a/pkg/provider/aws/parameterstore/parameterstore.go +++ b/pkg/provider/aws/parameterstore/parameterstore.go @@ -308,10 +308,7 @@ func (pm *ParameterStore) findByName(ctx context.Context, ref esv1beta1.External if !matcher.MatchName(*param.Name) { continue } - err = pm.fetchAndSet(ctx, data, *param.Name) - if err != nil { - return nil, err - } + data[*param.Name] = []byte(*param.Value) } nextToken = it.NextToken if nextToken == nil {