internal/provider: Updates for terraform-plugin-framework@v0.15.0 deprecations (#97)
This commit is contained in:
parent
992a9e2bb5
commit
c05b586f5c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user