mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
When applying module `moved` statements by iterating through modules in state, we previously required an exact match from the `moved` statement's `from` field and the module address. This permitted moving resources directly inside a module, but did not recur into module calls within those moved modules. This commit moves that exact match requirement so that it only applies to `moved` statements targeting resources. In turn this allows nested modules to be moved. |
||
---|---|---|
.. | ||
testdata | ||
move_execute_test.go | ||
move_execute.go | ||
move_statement_test.go | ||
move_statement.go | ||
move_validate_test.go | ||
move_validate.go |