terraform: compared states from shadow graph must be pruned

This commit is contained in:
Mitchell Hashimoto 2016-10-19 15:01:54 -07:00
parent e4ef1fe553
commit d27c8fbbbc
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

View File

@ -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(