Browse Source

remove redundant parameter grab call, we already have it from the getparamsbypathwctx() (#3722)

Roomba 1 year ago
parent
commit
196245c22c
1 changed files with 1 additions and 4 deletions
  1. 1 4
      pkg/provider/aws/parameterstore/parameterstore.go

+ 1 - 4
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 {