mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
terraform: compared states from shadow graph must be pruned
This commit is contained in:
parent
e4ef1fe553
commit
d27c8fbbbc
@ -101,6 +101,10 @@ func newShadowContext(c *Context) (*Context, *Context, Shadow) {
|
||||
func shadowContextVerify(real, shadow *Context) error {
|
||||
var result error
|
||||
|
||||
// The states compared must be pruned so they're minimal/clean
|
||||
real.state.prune()
|
||||
shadow.state.prune()
|
||||
|
||||
// Compare the states
|
||||
if !real.state.Equal(shadow.state) {
|
||||
result = multierror.Append(result, fmt.Errorf(
|
||||
|
Loading…
Reference in New Issue
Block a user