Merge pull request #10135 from hashicorp/b-data-info
terraform: EvalInstanceInfo on data sources in new graph
This commit is contained in:
commit
dc2c4cc417
|
@ -75,6 +75,11 @@ func (n *NodeApplyableResource) evalTreeDataResource(
|
|||
|
||||
return &EvalSequence{
|
||||
Nodes: []EvalNode{
|
||||
// Build the instance info
|
||||
&EvalInstanceInfo{
|
||||
Info: info,
|
||||
},
|
||||
|
||||
// Get the saved diff for apply
|
||||
&EvalReadDiff{
|
||||
Name: stateId,
|
||||
|
|
|
@ -682,7 +682,7 @@ func (p *shadowResourceProviderShadow) ReadDataDiff(
|
|||
p.ErrorLock.Lock()
|
||||
defer p.ErrorLock.Unlock()
|
||||
p.Error = multierror.Append(p.Error, fmt.Errorf(
|
||||
"Unknown 'ReadDataDiff' shadow value: %#v", raw))
|
||||
"Unknown 'ReadDataDiff' shadow value for %q: %#v", key, raw))
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
@ -718,7 +718,7 @@ func (p *shadowResourceProviderShadow) ReadDataApply(
|
|||
p.ErrorLock.Lock()
|
||||
defer p.ErrorLock.Unlock()
|
||||
p.Error = multierror.Append(p.Error, fmt.Errorf(
|
||||
"Unknown 'ReadDataApply' shadow value: %#v", raw))
|
||||
"Unknown 'ReadDataApply' shadow value for %q: %#v", key, raw))
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue