mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
7216049fdb
Previously we were just asserting that the number of elements didn't grow between planned and actual. We still can't precisely correlate elements in sets with unknown values, but here we adapt some logic we added earlier to config/hcl2shim to ensure that we can find a plausible correlation for each element in each set to at least one element in the other set, and thus catch more cases where set elements might vanish or appear between plan and apply, for improved safety. This will still generate false negatives in some cases where unknown values are present due to having to assume correlation is intended wherever it is possible, but we'll catch situations where the actual value is obviously contrary to what was planned. |
||
---|---|---|
.. | ||
internal/planproto | ||
objchange | ||
planfile | ||
action_string.go | ||
action.go | ||
changes_src.go | ||
changes_state.go | ||
changes_sync.go | ||
changes.go | ||
doc.go | ||
dynamic_value_test.go | ||
dynamic_value.go | ||
plan_test.go | ||
plan.go |