helper/plugin: don't panic in PlanResourceChange PlannedState
This commit is contained in:
parent
ec11efc50a
commit
686018ae12
|
@ -398,7 +398,9 @@ func (s *GRPCProviderServer) PlanResourceChange(_ context.Context, req *proto.Pl
|
|||
resp.Diagnostics = convert.AppendProtoDiag(resp.Diagnostics, err)
|
||||
return resp, nil
|
||||
}
|
||||
resp.PlannedState.Msgpack = plannedMP
|
||||
resp.PlannedState = &proto.DynamicValue{
|
||||
Msgpack: plannedMP,
|
||||
}
|
||||
|
||||
// the Meta field gets encoded into PlannedPrivate
|
||||
plannedPrivate, err := json.Marshal(diff.Meta)
|
||||
|
|
Loading…
Reference in New Issue