Skip to content

Commit

Permalink
add important info for all changeSets, just don't do filterFalsePosit…
Browse files Browse the repository at this point in the history
…ives for migrate

Signed-off-by: Sumu <sumughan@amazon.com>
  • Loading branch information
sumupitchayan committed Feb 28, 2024
1 parent d4cb526 commit 7b678ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ export function fullDiff(
normalize(newTemplate);
const theDiff = diffTemplate(currentTemplate, newTemplate);
// If the currentTemplate is empty, we skip these changeset functions.
if (changeSet && Object.keys(currentTemplate).length > 0) {
filterFalsePositivies(theDiff, changeSet);
if (changeSet) {
addImportInformation(theDiff, changeSet);
if (Object.keys(currentTemplate).length > 0) {
filterFalsePositivies(theDiff, changeSet);
}
}

return theDiff;
Expand Down

0 comments on commit 7b678ca

Please sign in to comment.