From c05b586f5c4d8ca11b80b8e0f50d1e233c562c70 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Wed, 26 Oct 2022 10:19:28 -0400 Subject: [PATCH] internal/provider: Updates for terraform-plugin-framework@v0.15.0 deprecations (#97) --- internal/provider/example_data_source.go | 2 +- internal/provider/example_resource.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/example_data_source.go b/internal/provider/example_data_source.go index 49ff1ee..1710e20 100644 --- a/internal/provider/example_data_source.go +++ b/internal/provider/example_data_source.go @@ -94,7 +94,7 @@ func (d *ExampleDataSource) Read(ctx context.Context, req datasource.ReadRequest // For the purposes of this example code, hardcoding a response value to // save into the Terraform state. - data.Id = types.String{Value: "example-id"} + data.Id = types.StringValue("example-id") // Write logs using the tflog package // Documentation: https://terraform.io/plugin/log diff --git a/internal/provider/example_resource.go b/internal/provider/example_resource.go index 1ee0230..a8ed35e 100644 --- a/internal/provider/example_resource.go +++ b/internal/provider/example_resource.go @@ -99,7 +99,7 @@ func (r *ExampleResource) Create(ctx context.Context, req resource.CreateRequest // For the purposes of this example code, hardcoding a response value to // save into the Terraform state. - data.Id = types.String{Value: "example-id"} + data.Id = types.StringValue("example-id") // Write logs using the tflog package // Documentation: https://terraform.io/plugin/log