From 843ed8911b97ac6e85b21e20da0a119be55e7686 Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Wed, 9 Sep 2020 12:07:07 -0400 Subject: [PATCH] Don't save PathValueMarks on instance_object --- states/instance_object.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/states/instance_object.go b/states/instance_object.go index a4dd671f5..2a9e58327 100644 --- a/states/instance_object.go +++ b/states/instance_object.go @@ -19,9 +19,6 @@ type ResourceInstanceObject struct { // Terraform. Value cty.Value - // PathValueMarks is a slice of paths and value marks of the value - PathValueMarks []cty.PathValueMarks - // Private is an opaque value set by the provider when this object was // last created or updated. Terraform Core does not use this value in // any way and it is not exposed anywhere in the user interface, so @@ -104,9 +101,7 @@ func (o *ResourceInstanceObject) Encode(ty cty.Type, schemaVersion uint64) (*Res // If it contains marks, dump those now unmarked := val if val.ContainsMarked() { - var pvm []cty.PathValueMarks - unmarked, pvm = val.UnmarkDeepWithPaths() - o.PathValueMarks = pvm + unmarked, _ = val.UnmarkDeep() } src, err := ctyjson.Marshal(unmarked, ty) if err != nil {