terraform: enable shadow walking on Refresh and Validate

This commit is contained in:
Mitchell Hashimoto 2016-10-12 18:57:52 +08:00
parent 98fa7d92a4
commit 7f04b33d3d
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 2 additions and 2 deletions

View File

@ -479,7 +479,7 @@ func (c *Context) Refresh() (*State, error) {
}
// Do the walk
if _, err := c.walk(graph, nil, walkRefresh); err != nil {
if _, err := c.walk(graph, graph, walkRefresh); err != nil {
return nil, err
}
@ -547,7 +547,7 @@ func (c *Context) Validate() ([]string, []error) {
}
// Walk
walker, err := c.walk(graph, nil, walkValidate)
walker, err := c.walk(graph, graph, walkValidate)
if err != nil {
return nil, multierror.Append(errs, err).Errors
}