-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unexplained detailed diffs (#1696)
Fixes pulumi/pulumi-aws#3439 makeDetailedDiff does not report collection changes. It instead hopes that elements of the collection will produce diff entries. When changes involve collections all the way down and there are no element entries, makeDetailedDiff produces no records. However we have some workarounds now that produce a DIFF_SOME even when there are no entries per #1501 ``` if p.info.XSkipDetailedDiffForChanges && len(diff.Attributes()) > 0 { changes = pulumirpc.DiffResponse_DIFF_SOME ``` The change in this PR embellishes this case with collection-level diffs so there is at least something to show.
- Loading branch information
Showing
3 changed files
with
186 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters