From 0c72c6f1448555bc02b99c6eb87bcf2d5e0c1a6a Mon Sep 17 00:00:00 2001 From: James Bardin Date: Mon, 5 Oct 2020 10:50:25 -0400 Subject: [PATCH] s/FullDestroy/IsFullDdestroy/ --- plans/changes_sync.go | 4 ++-- terraform/evaluate.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.