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