Skip to content

Commit

Permalink
Enhance comment in mapRemoteStateToTerraform function to clarify usag…
Browse files Browse the repository at this point in the history
…e of state package helpers
  • Loading branch information
ShocOne committed Nov 18, 2024
1 parent 756e3da commit cf87330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resources/_resource_template/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func mapRemoteStateToTerraform(ctx context.Context, data *ResourceTemplateResour
})

data.ID = types.StringValue(state.StringPtrToString(remoteResource.GetId()))
// add more fields here as needed
// add more fields here as needed. use the helpers from the state package as needed.

tflog.Debug(ctx, "Finished mapping remote state to Terraform state", map[string]interface{}{
"resourceId": data.ID.ValueString(),
Expand Down

0 comments on commit cf87330

Please sign in to comment.