store planned data source state when deferring

This copies the behavior of resources, so that there is a placeholder
state available for planning.
This commit is contained in:
James Bardin 2020-07-23 17:15:13 -04:00
parent 7204ba4ec2
commit 7d3cd5bc43

View File

@ -88,7 +88,7 @@ func (n *evalReadDataPlan) Eval(ctx EvalContext) (interface{}, error) {
}
*n.State = &states.ResourceInstanceObject{
Value: cty.NullVal(objTy),
Value: proposedNewVal,
Status: states.ObjectPlanned,
}