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

Skip computing a preview for Patch resources #2182

Merged
merged 2 commits into from Sep 22, 2022

Conversation

lblackstone
Copy link
Member

Proposed changes

Since Patch resources do not have to specify a complete resource, attempting to patch a nonexistent resource will return an Invalid error response during preview. To avoid this, skip computing a preview for Patch resources, and return the inputs directly. This is the same behavior used for resources containing unknowns.

Related issues (optional)

Fix #2177

Since Patch resources do not have to specify a complete resource, attempting to patch a nonexistent resource will return an Invalid error response during preview. To avoid this, skip computing a preview for Patch resources, and return the inputs directly. This is the same behavior used for resources containing unknowns.
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@lblackstone lblackstone merged commit 718f9f6 into master Sep 22, 2022
@pulumi-bot pulumi-bot deleted the lblackstone/patch-preview branch September 22, 2022 00:01
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

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.

Preview of patch resources for resources which don’t exist yet fails
2 participants