terraform/backend/remote
Kristin Laemmert e6cf6cd758
backend/remote: do not panic if PrepareConfig or Configure receive null (#25135)
* backend/remote: do not panic if PrepareConfig or Configure receive null
objects

If a user cancels (ctrl-c) terraform init while it is requesting missing
configuration options for the remote backend, the PrepareConfig and
Configure functions would receive a null cty.Value which would result in
panics. This PR adds a check for null objects to the two functions in
question.

Fixes #23992
2020-06-05 09:11:44 -04:00
..
testdata clean up go mod for go-tfe 2019-09-27 14:16:41 -07:00
backend.go backend/remote: do not panic if PrepareConfig or Configure receive null (#25135) 2020-06-05 09:11:44 -04:00
backend_apply.go prevent targeting for unsupported API versions 2020-05-15 16:57:18 -07:00
backend_apply_test.go add sad path tests for the TFP API version check 2020-05-19 11:14:48 -07:00
backend_common.go replace status string with go-tfe enum 2020-05-19 11:14:36 -07:00
backend_context.go vendor: go get github.com/hashicorp/go-tfe@v0.8.0 2020-05-15 15:58:01 -07:00
backend_context_test.go vendor: go get github.com/hashicorp/go-tfe@v0.8.0 2020-05-15 15:58:01 -07:00
backend_mock.go backend/remote: Handle cost estimation skipped due to targeting 2020-05-18 15:12:44 -07:00
backend_plan.go prevent targeting for unsupported API versions 2020-05-15 16:57:18 -07:00
backend_plan_test.go add sad path tests for the TFP API version check 2020-05-19 11:14:48 -07:00
backend_state.go Add support for force pushing with the remote backend 2020-05-06 12:07:43 -04:00
backend_state_test.go backend/remote: cleanup test connections 2019-02-07 09:55:19 +01:00
backend_test.go backend/remote: do not panic if PrepareConfig or Configure receive null (#25135) 2020-06-05 09:11:44 -04:00
cli.go Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
colorize.go backend/remote: implement the Local interface 2018-11-26 20:50:25 +01:00
remote_test.go Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
testing.go prevent targeting for unsupported API versions 2020-05-15 16:57:18 -07:00