s/FullDestroy/IsFullDdestroy/

This commit is contained in:
James Bardin 2020-10-05 10:50:25 -04:00
parent e35524c7f0
commit 0c72c6f144
2 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ type ChangesSync struct {
changes *Changes 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. // destroy of all resources.
func (cs *ChangesSync) FullDestroy() bool { func (cs *ChangesSync) IsFullDestroy() bool {
if cs == nil { if cs == nil {
panic("FullDestroy on nil ChangesSync") panic("FullDestroy on nil ChangesSync")
} }

View File

@ -695,7 +695,7 @@ func (d *evaluationStateData) GetResource(addr addrs.Resource, rng tfdiags.Sourc
// Decode all instances in the current state // Decode all instances in the current state
instances := map[addrs.InstanceKey]cty.Value{} instances := map[addrs.InstanceKey]cty.Value{}
pendingDestroy := d.Evaluator.Changes.FullDestroy() pendingDestroy := d.Evaluator.Changes.IsFullDestroy()
for key, is := range rs.Instances { for key, is := range rs.Instances {
if is == nil || is.Current == nil { if is == nil || is.Current == nil {
// Assume we're dealing with an instance that hasn't been created yet. // Assume we're dealing with an instance that hasn't been created yet.