Skip to content

Commit

Permalink
Merge pull request #13 from jpedroh/fix/gh_12
Browse files Browse the repository at this point in the history
fix: Remove state overwrite for plaintext field.
  • Loading branch information
koslib authored Aug 10, 2023
2 parents 889e7b5 + e6c94ab commit df799c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planetscale/database_branch_password_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package planetscale

import (
"context"

"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down Expand Up @@ -165,7 +166,6 @@ func (r *databaseBranchPasswordResource) Read(ctx context.Context, req resource.

// Overwrite items with refreshed state
state.Username = types.StringValue(databaseBranchPassword.Username)
state.Plaintext = types.StringValue(databaseBranchPassword.PlainText)

// Set refreshed state
diags = resp.State.Set(ctx, &state)
Expand Down

0 comments on commit df799c6

Please sign in to comment.