terraform: enable shadow walking on Refresh and Validate
This commit is contained in:
parent
98fa7d92a4
commit
7f04b33d3d
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue