Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with ComponentResource resource refs #5949

Merged
merged 4 commits into from
Dec 18, 2020

Conversation

lblackstone
Copy link
Member

@lblackstone lblackstone commented Dec 15, 2020

Now that resources are serialized as refs, ComponentResources
may try to unmarshal local resource refs before they are
initialized during the RegisterResource step.

This change avoids that issue by skipping Output marshaling
for local ComponentResources during the RegisterResource step.
These Outputs will be handled instead during the
RegisterResourceOutputs step.

Fix #5940

@lblackstone lblackstone marked this pull request as ready for review December 16, 2020 23:51
Now that resources are serialized as refs, ComponentResources
may try to unmarshal local resource refs before they are
initialized during the RegisterResource step.

This change avoids that issue by skipping Output marshaling
for local ComponentResources during the RegisterResource step.
These Outputs will be handled instead during the
RegisterResourceOutputs step.
@lblackstone lblackstone changed the title Fix resource ref support for ComponentResources Fix bug with ComponentResource resource refs Dec 17, 2020
@pgavlin
Copy link
Member

pgavlin commented Dec 18, 2020

Any way we could get a simple unit test together?

@lblackstone lblackstone merged commit 1c87d58 into master Dec 18, 2020
@pulumi-bot pulumi-bot deleted the lblackstone/fix-get-ref branch December 18, 2020 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception: invocation of pulumi:pulumi:getResource returned an error: unknown resource
2 participants