github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/jsonformat/differ/output.go (about) 1 package differ 2 3 import ( 4 "github.com/zclconf/go-cty/cty" 5 6 "github.com/hashicorp/terraform/internal/command/jsonformat/computed" 7 "github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers" 8 ) 9 10 func (change Change) ComputeDiffForOutput() computed.Diff { 11 if sensitive, ok := change.checkForSensitiveType(cty.DynamicPseudoType); ok { 12 return sensitive 13 } 14 15 if unknown, ok := change.checkForUnknownType(cty.DynamicPseudoType); ok { 16 return unknown 17 } 18 19 jsonOpts := renderers.RendererJsonOpts() 20 return jsonOpts.Transform(change.Before, change.After, change.BeforeExplicit, change.AfterExplicit, change.RelevantAttributes) 21 }