mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-13 01:22:05 -06:00
2eea07750a
We previously had mechanisms to clean up only individual instance states, leaving behind empty resource husks in the state after they were all destroyed. This takes care of it in the "orphan" case. It does not yet do it in the "terraform destroy" or "terraform plan -destroy" cases because we don't have anywhere to record in the plan that we're actually destroying and so the resource configurations should be ignored and _everything_ should be cleaned. We'll let the state be not-quite-empty in that case for now, since it doesn't really hurt; cleaning up orphans is the main case because the state will live on afterwards and so leftover cruft will accumulate over the course of many changes. |
||
---|---|---|
.. | ||
statefile | ||
statemgr | ||
doc.go | ||
eachmode_string.go | ||
instance_generation.go | ||
instance_object_src.go | ||
instance_object.go | ||
module.go | ||
objectstatus_string.go | ||
output_value.go | ||
resource_test.go | ||
resource.go | ||
state_deepcopy.go | ||
state_equal.go | ||
state_string.go | ||
state_test.go | ||
state.go | ||
sync.go |