terraform/backend
Mitchell Hashimoto 2be1f55cbb
backend/local: allow refresh on empty/non-existent state
This allows a refresh on a non-existent or empty state file. We changed
this in 0.9.0 to error which seemed reasonable but it turns out this
complicates automation that runs refresh since it now needed to
determine if the state file was empty before running.

Its easier to just revert this into a warning with exit code zero.

The reason this changed is because in 0.8.x and earlier, the output
would be simply empty with exit code zero which seemed odd.
2017-03-16 12:11:31 -07:00
..
atlas backend/atlas: adhere to new multi-state interface 2017-03-01 13:31:52 -08:00
init backend/init: add atlas, remove legacy atlas remote state 2017-03-01 13:29:16 -08:00
legacy Make backcend/legacy match new Backend iface 2017-02-28 16:35:45 -05:00
local backend/local: allow refresh on empty/non-existent state 2017-03-16 12:11:31 -07:00
remote-state backend/consul: rebase and modify gzip test 2017-03-14 17:59:54 -07:00
backend.go command: initial work on migrating envs, basic cases first 2017-03-01 10:59:17 -08:00
cli.go command: use backend.CLIIinit 2017-02-28 10:58:29 -08:00
nil.go Update Backend interface to latest iteration 2017-02-28 16:07:07 -05: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 backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
testing.go Merge pull request #12558 from hashicorp/f-backend-testing 2017-03-15 08:45:20 -07:00