Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #256 from crossplane/backport-255-to-release-0.4
Browse files Browse the repository at this point in the history
[Backport release-0.4] Fix sensitive path mapping
  • Loading branch information
turkenh authored Mar 7, 2022
2 parents a583605 + 3cd4bf4 commit 149baad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (g *Builder) buildResource(res *schema.Resource, cfg *config.Resource, tfPa
// Terraform paths, e.g. { "lifecycle_rule", "*", "transition", "*", "days" } for https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#lifecycle_rule
tfPaths := append(tfPath, fieldName.Snake)
// Crossplane paths, e.g. {"lifecycleRule", "*", "transition", "*", "days"}
xpPaths := append(xpPath, fieldName.LowerCamel)
xpPaths := append(xpPath, fieldName.LowerCamelComputed)
// Canonical paths, e.g. {"LifecycleRule", "Transition", "Days"}
cnPaths := append(names[1:], fieldName.Camel)

Expand Down

0 comments on commit 149baad

Please sign in to comment.