terraform/states/statemgr
Martin Atkins 48601d261d states/statemgr: In Filesystem, back up output file, not input file
The filesystem backend has the option of using a different file for its
initial read.

Previously we were incorrectly writing the contents of that file out into
the backup file, rather than the prior contents of the output file. Now
we will always read the output file in RefreshState in order to decide
what we will back up but then we will optionally additionally read the
input file and prefer its content as the "current" state snapshot.

This is verified by command.TestMetaBackend_planLocalStatePath and
TestMetaBackend_configureNew, which are both now passing.
2018-11-19 09:02:35 -08:00
..
testdata statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
doc.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
filesystem.go states/statemgr: In Filesystem, back up output file, not input file 2018-11-19 09:02:35 -08:00
filesystem_lock_unix.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
filesystem_lock_windows.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
filesystem_test.go states/statemgr: In Filesystem, back up output file, not input file 2018-11-19 09:02:35 -08:00
helper.go command: Use statemgr.Import and statemgr.Export for state push and pull 2018-11-19 09:02:35 -08:00
lineage.go command/state: update and fix the state push and pull 2018-10-19 19:12:23 +02:00
locker.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
migrate.go states/statemgr: Migrate, Import, and Export functions 2018-11-19 09:02:35 -08:00
migrate_test.go states/statemgr: Migrate, Import, and Export functions 2018-11-19 09:02:35 -08:00
persistent.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
plan.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
snapshotmetarel_string.go states/statemgr: Migrate, Import, and Export functions 2018-11-19 09:02:35 -08:00
statemgr.go statemgr: Helper funcs RefreshAndRead and WriteAndPersist 2018-10-16 18:58:49 -07:00
statemgr_fake.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
statemgr_test.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
testing.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
transient.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00
transient_inmem.go statemgr: New package for state managers 2018-10-16 18:49:20 -07:00