Refactor of differ to make code reuse easier (#33054)

* refactor of differ to make code reuse easier

* fix imports
This commit is contained in:
Liam Cervante
2023-04-21 09:51:55 +02:00
committed by GitHub
parent 324c82b077
commit 357012a2f3
27 changed files with 409 additions and 337 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/hashicorp/terraform/internal/command/jsonformat/collections"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/differ/attribute_path"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured/attribute_path"
"github.com/hashicorp/terraform/internal/plans"
)
@@ -150,7 +150,6 @@ func (opts JsonOpts) processObject(before, after map[string]interface{}, relevan
// Mark non-relevant attributes as unchanged.
afterChild = beforeChild
afterExplicit = beforeExplicit
}
return opts.Transform(beforeChild, afterChild, beforeExplicit, afterExplicit, childRelevantAttributes)