mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-23 04:00:32 -04:00
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>
11 KiB
11 KiB