terraform/command/testdata/013upgrade-multiple-blocks
Alisdair McDiarmid 1fdcbc4825 command: Fix 0.13upgrade bug with multiple blocks
If a configuration had multiple blocks in the versions.tf file, it would
be added to the `rewritePaths` list multiple times. We would then remove
it from this slice, but only once, and so the output file would later be
rewritten to remove the required providers block.

This commit uses a set instead of a list to prevent this case, and adds
a regression test.
2020-05-07 20:11:44 -04:00
..
expected command: Fix 0.13upgrade bug with multiple blocks 2020-05-07 20:11:44 -04:00
input command: Fix 0.13upgrade bug with multiple blocks 2020-05-07 20:11:44 -04:00