Skip to content

SDKv2 and PF Read return values for fully computed nested properties when importing #2180

@VenelinMartinov

Description

@VenelinMartinov

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).

Metadata

Metadata

Labels

impact/regressionSomething that used to work, but is now brokenkind/bugSome behavior is incorrect or out of specp1A bug severe enough to be the next item assigned to an engineerresolution/fixedThis issue was fixed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions