Skip to content

Commit 0fe02ce

Browse files
committed
Fix: Pass state bytes into WriteStateBytesRequest
Otherwise the provider never receives any state data to write!
1 parent c783438 commit 0fe02ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/states/remote/remote_grpc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func (g *grpcClient) Put(state []byte) tfdiags.Diagnostics {
8282
req := providers.WriteStateBytesRequest{
8383
TypeName: g.typeName,
8484
StateId: g.stateId,
85+
Bytes: state,
8586
}
8687
resp := g.provider.WriteStateBytes(req)
8788

0 commit comments

Comments
 (0)