helper/plugin: don't panic in ReadDataSource State

pull/19086/head
Radek Simko 8 years ago committed by Martin Atkins
parent 67a8757b69
commit d93b462e9c

@ -619,7 +619,9 @@ func (s *GRPCProviderServer) ReadDataSource(_ context.Context, req *proto.ReadDa
resp.Diagnostics = convert.AppendProtoDiag(resp.Diagnostics, err)
return resp, nil
}
resp.State.Msgpack = newStateMP
resp.State = &proto.DynamicValue{
Msgpack: newStateMP,
}
return resp, nil
}

Loading…
Cancel
Save