mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-01 03:37:00 -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 {
|
func shadowContextVerify(real, shadow *Context) error {
|
||||||
var result error
|
var result error
|
||||||
|
|
||||||
|
// The states compared must be pruned so they're minimal/clean
|
||||||
|
real.state.prune()
|
||||||
|
shadow.state.prune()
|
||||||
|
|
||||||
// Compare the states
|
// Compare the states
|
||||||
if !real.state.Equal(shadow.state) {
|
if !real.state.Equal(shadow.state) {
|
||||||
result = multierror.Append(result, fmt.Errorf(
|
result = multierror.Append(result, fmt.Errorf(
|
||||||
|
Loading…
Reference in New Issue
Block a user