diff --git a/plans/changes_sync.go b/plans/changes_sync.go index 5e735c09a..0a69dc215 100644 --- a/plans/changes_sync.go +++ b/plans/changes_sync.go @@ -21,9 +21,9 @@ type ChangesSync struct { changes *Changes } -// FullDestroy returns true if the set of changes indicates we are doing a +// IsFullDestroy returns true if the set of changes indicates we are doing a // destroy of all resources. -func (cs *ChangesSync) FullDestroy() bool { +func (cs *ChangesSync) IsFullDestroy() bool { if cs == nil { panic("FullDestroy on nil ChangesSync") } diff --git a/terraform/evaluate.go b/terraform/evaluate.go index 7bf7c9112..0647bb68e 100644 --- a/terraform/evaluate.go +++ b/terraform/evaluate.go @@ -695,7 +695,7 @@ func (d *evaluationStateData) GetResource(addr addrs.Resource, rng tfdiags.Sourc // Decode all instances in the current state instances := map[addrs.InstanceKey]cty.Value{} - pendingDestroy := d.Evaluator.Changes.FullDestroy() + pendingDestroy := d.Evaluator.Changes.IsFullDestroy() for key, is := range rs.Instances { if is == nil || is.Current == nil { // Assume we're dealing with an instance that hasn't been created yet.