We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0dddca commit 43a7497Copy full SHA for 43a7497
tfprotov5/internal/fromproto/resource.go
@@ -43,9 +43,13 @@ func UpgradeResourceStateResponse(in *tfplugin5.UpgradeResourceState_Response) (
43
if err != nil {
44
return nil, err
45
}
46
- return &tfprotov5.UpgradeResourceStateResponse{
+ resp := &tfprotov5.UpgradeResourceStateResponse{
47
Diagnostics: diags,
48
- }, nil
+ }
49
+ if in.UpgradedState != nil {
50
+ resp.UpgradedState = DynamicValue(in.UpgradedState)
51
52
+ return resp, nil
53
54
55
func ReadResourceRequest(in *tfplugin5.ReadResource_Request) (*tfprotov5.ReadResourceRequest, error) {
0 commit comments