Merge pull request #10135 from hashicorp/b-data-info

terraform: EvalInstanceInfo on data sources in new graph
This commit is contained in:
Mitchell Hashimoto 2016-11-15 09:04:05 -08:00 committed by GitHub
commit dc2c4cc417
2 changed files with 7 additions and 2 deletions

View File

@ -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,

View File

@ -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
}