-
Notifications
You must be signed in to change notification settings - Fork 50
Description
What happened?
During pulumi/pulumi-gcp#2096 it was discovered that imports don't generate the right state for cases where there is a fully computed nested property.
We return a value which then gets picked up as an input and makes the engine generate invalid code for any resource which has a nested computed property. This impacts imports and maybe refresh since we do a preview after the Read in refresh.
This looks like a regression on #453 The code was refactored in #1812 and it seems the logic was dropped there for nested properties.
Example
See TestRefreshExtractInputsFromOutputsListOfObjects and pulumi/pulumi-gcp#2096
Output of pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).