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

Handle Output values in diffs #682

Merged
merged 5 commits into from
Aug 1, 2019
Merged

Conversation

lblackstone
Copy link
Member

The server-side diff based on a dryRun doesn't understand Pulumi
Outputs, so it would cause an error for any update that depended
a calculated value.

As a workaround, fallback to a client-side diff if a dryRun diff
returns an error.

Fixes #679

pkg/provider/provider.go Outdated Show resolved Hide resolved
The server-side diff based on a dryRun doesn't understand Pulumi
Outputs, so it would cause an error for any update that depended
a calculated value.

As a workaround, fallback to a client-side diff if a dryRun diff
returns an error.
@lblackstone lblackstone force-pushed the lblackstone/handle-output-in-diff branch from 60873e8 to f9ed212 Compare August 1, 2019 18:38
pkg/provider/provider.go Show resolved Hide resolved
pkg/provider/util.go Outdated Show resolved Hide resolved
Copy link
Contributor

@hausdorff hausdorff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add one test with like 4 levels of nesting?

@lblackstone lblackstone merged commit 5d13254 into master Aug 1, 2019
@pulumi-bot pulumi-bot deleted the lblackstone/handle-output-in-diff branch August 1, 2019 21:09
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.

Error computing the JSON patch describing the resource changes: unrecognized type: string
3 participants