Files
opentf/internal/engine/planning/execgraph_resource.go
Martin Atkins 4a3d74f6a4 planning: Set result for no-op resource instances
For any resource instance object that doesn't need any changes of its own,
we initially skip adding it to the execution graph but then add a stub
"prior state" operation retroactively if we discover at least one other
resource instance object that depends on it.

However, the code for that also needs to record in the execution graph
which result provides the evaluation value for the upstream resource
instance, if the object we've just added is the "current" object for its
resource instance. Otherwise the generated execution graph is invalid,
causing it to fail to provide the result to the evaluator for downstream
evaluation.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2026-03-05 06:56:38 -08:00

11 KiB