Files
opentf/internal/command/jsonformat/differ/primitive.go
Liam Cervante a086453783 Structured Plan Renderer: Refactor Primitive and Sensitive value processing (#32476)
* refactor sensitive and primitive values to match patterns used elsewhere

* goimports

* address comments

* fix tests

* also use %q for map keys
2023-01-09 20:38:25 +01:00

12 lines
277 B
Go

package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/change"
)
func (v Value) computeAttributeChangeAsPrimitive(ctype cty.Type) change.Change {
return v.asChange(change.Primitive(v.Before, v.After, ctype))
}