opentofu/internal/cloud
Barrett Clark ab304d831f Found another path to backend init error
There are actually a few different ways to get to this message.

1. Blank state — no previous terraform applied. Start with a cloud block.
1. Implicit local — start with no backend specified. This actually goes
   through the same code execution path as the first scenario.
1. Explicit local — start with a backend local block that has been
   applied, then change from the local backend to a cloud block. This
   will recognize the state, and is a different path through the code in
   the meta backend.

This commit handles the last case. The messaging has also been tweaked.

End to end test included as well.
2021-10-28 19:29:16 -05:00
..
e2e Found another path to backend init error 2021-10-28 19:29:16 -05:00
testdata Run apply -refresh-state instead of refresh 2021-10-28 19:29:12 -05:00
backend_apply_test.go Update HasResource to HasManagedResourceInstanceObjects 2021-10-28 19:29:15 -05:00
backend_apply.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
backend_cli.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_colorize.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_common.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
backend_context_test.go Rename cloud.testBackendDefault -> cloud.testBackendWithName 2021-10-28 19:29:11 -05:00
backend_context.go Remove prefix from the cloud backend config 2021-10-28 19:29:12 -05:00
backend_plan_test.go Remove prefix from the cloud backend config 2021-10-28 19:29:12 -05:00
backend_plan.go Run apply -refresh-state instead of refresh 2021-10-28 19:29:12 -05:00
backend_refresh_test.go Run apply -refresh-state instead of refresh 2021-10-28 19:29:12 -05:00
backend_state_test.go Rename cloud.testBackendDefault -> cloud.testBackendWithName 2021-10-28 19:29:11 -05:00
backend_state.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_test.go Simplify logic flow: everything is a constraint 2021-10-28 19:29:13 -05:00
backend.go Simplify logic flow: everything is a constraint 2021-10-28 19:29:13 -05:00
cloud_variables_test.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
cloud_variables.go Add run variables to cloud plan operations from non-file sources 2021-10-28 19:29:12 -05:00
errors.go Simplify logic flow: everything is a constraint 2021-10-28 19:29:13 -05:00
remote_test.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
testing.go Remove prefix from the cloud backend config 2021-10-28 19:29:12 -05:00
tfe_client_mock.go Add auto-approve logic, e2e tests 2021-10-28 19:29:11 -05:00
versioning.go cloud: Set minimum TFE version 2021-10-28 19:29:12 -05:00