opentofu/configs/configupgrade
Martin Atkins 4b5d31d35d configs/configupgrade: Rules-based upgrade for "locals" block
Previously we were handling this one as a special case, effectively
duplicating most of the logic from upgradeBlockBody.

By doing some prior analysis of the block we can produce a "rules" that
just passes through all of the attributes as-is, allowing us to reuse
upgradeBlockBody. This is a little weird for the locals block since
everything in it is user-selected names, but this facility will also be
useful in a future commit for dealing with module blocks, which contain
a mixture of user-chosen and reserved argument names.
2018-12-05 10:25:01 -08:00
..
test-fixtures configs/configupgrade: Fix up references to counted/uncounted resources 2018-12-04 11:37:39 -08:00
analysis.go configs/configupgrade: Fix up references to counted/uncounted resources 2018-12-04 11:37:39 -08:00
doc.go configupgrade: new package for upgrading configs for 0.12 2018-10-16 18:50:29 -07:00
module_sources_test.go configupgrade: Load source code for a module and detect already upgraded 2018-10-16 18:50:29 -07:00
module_sources.go configupgrade: Load source code for a module and detect already upgraded 2018-10-16 18:50:29 -07:00
upgrade_body.go configs/configupgrade: Rules-based upgrade for "locals" block 2018-12-05 10:25:01 -08:00
upgrade_expr.go configs/configupgrade: Fix up references to counted/uncounted resources 2018-12-04 11:37:39 -08:00
upgrade_native.go configs/configupgrade: Rules-based upgrade for "locals" block 2018-12-05 10:25:01 -08:00
upgrade_test.go configs/configupgrade: Normalize and upgrade reference expressions 2018-12-04 11:37:39 -08:00
upgrade.go configs/configupgrade: Retain any .tf.json files unchanged 2018-12-04 11:37:39 -08:00
upgrader.go terraform: More wiring in of new provider types 2018-10-16 19:12:54 -07:00