mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
s/FullDestroy/IsFullDdestroy/
This commit is contained in:
parent
e35524c7f0
commit
0c72c6f144
@ -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")
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user