mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Add a new ChangeReason, ReasonDeleteBecauseNoMoveTarget, to provide better information in cases where a planned deletion is due to moving a resource to a target not in configuration. Consider a case in which a resource instance exists in state at address A, and the user adds a moved block to move A to address B. Whether by the user's intention or not, address B does not exist in configuration. Terraform combines the move from A to B, and the lack of configuration for B, into a single delete action for the (previously nonexistent) entity B. Prior to this commit, the Terraform plan will report that resource B will be destroyed because it does not exist in configuration, without explicitly connecting this to the move. This commit provides the user an additional clue as to what has happened, in a case in which Terraform has elided a user's action and inaction into one potentially destructive change. |
||
---|---|---|
.. | ||
json | ||
testdata/show | ||
apply_test.go | ||
apply.go | ||
hook_count_test.go | ||
hook_count.go | ||
hook_json_test.go | ||
hook_json.go | ||
hook_ui_test.go | ||
hook_ui.go | ||
json_view_test.go | ||
json_view.go | ||
operation_test.go | ||
operation.go | ||
output_test.go | ||
output.go | ||
plan_test.go | ||
plan.go | ||
refresh_test.go | ||
refresh.go | ||
show_test.go | ||
show.go | ||
state_locker.go | ||
test_test.go | ||
test.go | ||
validate_test.go | ||
validate.go | ||
view.go |