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

Commit

Permalink
Fix sensitive path mapping
Browse files Browse the repository at this point in the history
Fixes #251

Signed-off-by: Hasan Turken <turkenh@gmail.com>
  • Loading branch information
turkenh committed Mar 7, 2022
1 parent 5c9eff3 commit dbc7b90
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 dbc7b90

Please # to comment.