Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/privatestate: Handle terraform-plugin-sdk private state in N…
…ewData (#452) Previously, errors such as these could be returned: ``` Error: Error Decoding Private State with random_password.min, on terraform_plugin_test.tf line 1, in resource "random_password" "min": 1: resource "random_password" "min" { An error was encountered when decoding private state: illegal base64 data at input byte 0. This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer. ``` The new unit test case would fail with the same error prior to this fix.
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
resource: Prevented `Error Decoding Private State` errors on resources previously managed by terraform-plugin-sdk | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters