mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-25 14:00:57 -05:00
Previously this was calling "Value", which is incorrect because that function resolves only after we've already planned and applied the resource instance and so this was causing a promise self-dependency error. Instead, we need to have the configgraph package expose the configuration value directly and then use just that as part of this result. (We do still want to eventually unify the two codepaths that produce these DesiredResourceInstance objects, but this commit is focused only on fixing this bug as directly as possible. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>