mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
* refactor sensitive and primitive values to match patterns used elsewhere * goimports * address comments * fix tests * also use %q for map keys
12 lines
277 B
Go
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))
|
|
}
|