mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-19 13:12:58 -06:00
terraform: enable shadow on destroy and Plan
This commit is contained in:
parent
a9f1166583
commit
4c951428d7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user