Skip to content

Commit

Permalink
fix unintentional modification of slice in GetSensitiveParameters
Browse files Browse the repository at this point in the history
Signed-off-by: Erhan Cagirici <[email protected]>
  • Loading branch information
erhancagirici committed Nov 12, 2024
1 parent a18bd41 commit df60d06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/resource/sensitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,8 @@ func GetSensitiveParameters(ctx context.Context, client SecretClient, from runti
return err
}
pavedTF := fieldpath.Pave(into)
prefixes := []string{"spec.initProvider.", "spec.forProvider."}

for tfPath, jsonPath := range mapping {
prefixes := []string{"spec.initProvider.", "spec.forProvider."}
jp := jsonPath
groups := reFieldPathSpec.FindStringSubmatch(jsonPath)
if len(groups) == 3 {
Expand Down

0 comments on commit df60d06

Please sign in to comment.