terraform: enable shadow on destroy and Plan

This commit is contained in:
Mitchell Hashimoto 2016-10-12 18:50:41 +08:00
parent a9f1166583
commit 4c951428d7
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

View File

@ -362,7 +362,7 @@ func (c *Context) Apply() (*State, error) {
// Do the walk
var walker *ContextGraphWalker
if c.destroy {
walker, err = c.walk(graph, nil, walkDestroy)
walker, err = c.walk(graph, graph, walkDestroy)
} else {
//walker, err = c.walk(graph, nil, walkApply)
walker, err = c.walk(graph, graph, walkApply)
@ -430,7 +430,7 @@ func (c *Context) Plan() (*Plan, error) {
}
// Do the walk
walker, err := c.walk(graph, nil, operation)
walker, err := c.walk(graph, graph, operation)
if err != nil {
return nil, err
}