terraform/backend
Martin Atkins 27abd9c6b8 command: Fix TestMetaBackend_localDoesNotDeleteLocal
The changes to how we handle setting the state path on the local backend
broke the heuristic we were using here for detecting migration from one
local backend to another with the same state path, which would by default
end up deleting the state altogether after migration.

We now use the StatePaths method to do this, which takes into account
both the default values and any settings that have been set.

Additionally this addresses a flaw in the old method which could
potentially have deleted all non-default workspace state files if the
"path" setting were changed without also changing the "workspace_dir"
setting. This new approach is conservative because it will preserve all
of the files if any one overlaps.
2018-11-19 09:02:35 -08:00
..
atlas Make the Atlas backend work after updating depencies 2018-11-15 20:34:31 +01:00
init Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
local command: Fix TestMetaBackend_localDoesNotDeleteLocal 2018-11-19 09:02:35 -08:00
remote Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
remote-state Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
backend.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
cli.go backend: Update interface and implementations for new config loader 2018-10-16 18:39:12 -07:00
nil.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
nil_test.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operation_type.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operationtype_string.go Update various files for new version of "stringer" 2017-12-11 13:26:29 -08:00
testing.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
unparsed_value.go Add a VariableSourceType for names .tfvars files 2018-11-05 19:29:34 +01:00