opentofu/internal/backend/local
James Bardin df0a70bfb6 check for cancellation before apply confirmation
When executing an apply with no plan, it's possible for a cancellation
to arrive during the final batch of provider operations, resulting in no
errors in the plan. The run context was next checked during the
confirmation for apply, but in the case of -auto-approve that
confirmation is skipped, resulting in the canceled plan being applied.

Make sure we directly check for cancellation before confirming the plan.
2022-05-02 14:09:47 -04:00
..
testdata core: Functional-style API for terraform.Context 2021-08-30 13:59:14 -07:00
backend_apply_test.go check for cancellation before apply confirmation 2022-05-02 14:09:47 -04:00
backend_apply.go check for cancellation before apply confirmation 2022-05-02 14:09:47 -04:00
backend_local_test.go plans/planfile: Create takes most arguments via a struct type 2021-10-01 14:43:58 -07:00
backend_local.go backend/local: Remove unused DisablePlanFileStateLineageChecks flag 2022-01-13 11:00:10 -06:00
backend_plan_test.go backend/local: Check dependency lock consistency before any operations 2021-10-01 14:43:58 -07:00
backend_plan.go insert panic handlers 2021-10-28 11:51:39 -04:00
backend_refresh_test.go backend/local: Check dependency lock consistency before any operations 2021-10-01 14:43:58 -07:00
backend_refresh.go insert panic handlers 2021-10-28 11:51:39 -04:00
backend_test.go test: use T.TempDir to create temporary test directory (#30803) 2022-04-08 17:34:16 +01:00
backend.go insert panic handlers 2021-10-28 11:51:39 -04:00
cli.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
hook_state_test.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
hook_state.go Move terraform/ to internal/terraform/ 2021-05-17 14:09:07 -07:00
local_test.go Move backend/ to internal/backend/ 2021-05-17 14:09:07 -07:00
testing.go temp path clean for some backend tests 2021-09-23 17:16:33 -04:00