terraform/backend/local
Mitchell Hashimoto d01886a644
command: remove legacy remote state on migration
Fixes #12871

We were forgetting to remove the legacy remote state from the actual
state value when migrating. This only causes an issue when saving a plan
since the plan contains the state itself and causes an error where both
a backend + legacy state exist.

If saved plans aren't used this causes no noticable issue.

Due to buggy upgrades already existing in the wild, I also added code to
clear the remote section if it exists in a standard unchanged backend
2017-03-20 10:14:59 -07:00
..
test-fixtures backend/local: check for empty config on apply 2017-02-15 16:00:59 -08:00
backend.go backend/local: run backend.TestBackend 2017-03-09 16:17:21 +05:30
backend_apply.go backend/local: allow nil modules (no config) if executing a plan 2017-02-16 10:56:39 -08:00
backend_apply_test.go backend/local: check for empty config on apply 2017-02-15 16:00:59 -08:00
backend_local.go update local.Local to match the latest Backend 2017-02-28 16:07:31 -05:00
backend_plan.go command: remove legacy remote state on migration 2017-03-20 10:14:59 -07:00
backend_plan_test.go backend/local: validate module exists for plan 2017-01-29 20:02:12 -08:00
backend_refresh.go backend/local: allow refresh on empty/non-existent state 2017-03-16 12:11:31 -07:00
backend_refresh_test.go backend/local: refresh with no config should not crash on input 2017-02-22 13:10:08 -08:00
backend_test.go backend/local: call new test API correctly 2017-03-15 08:46:58 -07:00
cli.go command: use backend.CLIIinit 2017-02-28 10:58:29 -08:00
counthookaction_string.go backend/local 2017-01-26 14:33:49 -08:00
hook_count.go backend/local 2017-01-26 14:33:49 -08:00
hook_count_action.go backend/local 2017-01-26 14:33:49 -08:00
hook_count_test.go backend/local 2017-01-26 14:33:49 -08:00
hook_state.go backend/local 2017-01-26 14:33:49 -08:00
hook_state_test.go backend/local 2017-01-26 14:33:49 -08:00
local_test.go backend/local 2017-01-26 14:33:49 -08:00
testing.go backend/local: run backend.TestBackend 2017-03-09 16:17:21 +05:30