mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
3cd069900b
We previously had a special case in the graph transformer for output values where it would directly create an individual output value node instead of an "expand" node as we would do for output values in nested modules. While it's true that we do always know that expanding a root module output value will always produce exactly one instance, treating this case as special creates the risk of those two codepaths diverging in other ways. Instead, we'll let the expand node also deal with root modules and minimize the special case only to how we look up any changes for the output values, since the design of plans.Changes is a bit awkward and requires us to ask the question differently for root module output values. Otherwise, the behavior will now be consistent across all output values regardless of module. |
||
---|---|---|
.. | ||
internal/planproto | ||
objchange | ||
planfile | ||
action_string.go | ||
action.go | ||
changes_src.go | ||
changes_state.go | ||
changes_sync.go | ||
changes_test.go | ||
changes.go | ||
conditions.go | ||
doc.go | ||
dynamic_value.go | ||
mode_string.go | ||
mode.go | ||
plan_test.go | ||
plan.go | ||
resourceinstancechangeactionreason_string.go |