Files
opentf/command
Alisdair McDiarmid 17e1c9dd05 command: Fix state mv for only resource in module
When moving a resource block with multiple instances to a new address
within the same module, we need to ensure that the target module is
present as late as possible. Otherwise, deleting the resource from the
original address triggers pruning, and the module is removed just before
we try to add the resource to it, which causes a crash.

Includes regression test which panics without this code change.
2020-08-11 11:54:35 -04:00
..
2015-04-29 13:07:13 -05:00
2019-07-18 16:11:41 -04:00
2020-05-26 17:48:57 -07:00
2018-10-16 18:24:47 -07:00