s/FullDestroy/IsFullDdestroy/
This commit is contained in:
parent
e35524c7f0
commit
0c72c6f144
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue