terraform/states/statefile
Kristin Laemmert 58bcc2e9bb
addrs: detect builtin provider when parsing legacy provider string (#25154)
* addrs: detect builtin provider when parsing legacy provider string

The ParseLegacyAbsProviderConfig was not detecting builtin providers
("terraform"), which caused issues for all users with 0.12 state and
the "terraform_remote_state" data source. Since "terraform" is the only
built-in provider this adds a very simple check to the parser so it
properly returns the builtin FQN.

* add tests to the addrs package
2020-06-08 08:27:36 -04:00
..
testdata/roundtrip addrs: detect builtin provider when parsing legacy provider string (#25154) 2020-06-08 08:27:36 -04:00
diagnostics.go
doc.go
file.go states/statefile: Tolerate nil state in statefile.New 2018-10-16 19:14:11 -07:00
marshal_equal.go command: Allow tests to run to completion without panics or hangs 2018-10-16 19:14:11 -07:00
read.go command: Fix TestInit_getProvider 2018-11-12 15:19:55 -08:00
roundtrip_test.go read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
version0.go
version1.go
version1_upgrade.go
version2.go states/statefile: decode backend hash as uint64 2019-05-28 23:59:36 +09:00
version2_upgrade.go
version3.go
version3_upgrade.go remove unused depends_on field and add test 2020-05-14 15:46:08 -04:00
version4.go addrs: detect builtin provider when parsing legacy provider string (#25154) 2020-06-08 08:27:36 -04:00
write.go always write the current state terraform_version 2019-05-21 18:55:53 -04:00