mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
decode change before creating diff
This is functionally equivalent, but will allow us to filter the change values directly for reduced drift output.
This commit is contained in:
@@ -234,6 +234,10 @@ func (rc *ResourceInstanceChange) Encode(ty cty.Type) (*ResourceInstanceChangeSr
|
||||
}, err
|
||||
}
|
||||
|
||||
func (rc *ResourceInstanceChange) Moved() bool {
|
||||
return !rc.Addr.Equal(rc.PrevRunAddr)
|
||||
}
|
||||
|
||||
// Simplify will, where possible, produce a change with a simpler action than
|
||||
// the receiever given a flag indicating whether the caller is dealing with
|
||||
// a normal apply or a destroy. This flag deals with the fact that Terraform
|
||||
|
||||
Reference in New Issue
Block a user