Skip to content

Commit

Permalink
chore(CLI): nested stacks should be skipped by changeset diff (#28784)
Browse files Browse the repository at this point in the history
#28741 accidentally broke the logic that skips them

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
comcalvi authored Jan 22, 2024
1 parent 1b6be8b commit 25d193a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/api/util/cloudformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export async function createDiffChangeSet(options: PrepareChangeSetOptions): Pro
// eslint-disable-next-line no-console
debug('This stack contains one or more nested stacks, falling back to template-only diff...');

//return undefined;
return undefined;
}
}

Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk/test/diff.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ Resources
const plainTextOutput = buffer.data.replace(/\x1B\[[0-?]*[ -/]*[@-~]/g, '')
.replace(/[ \t]+$/mg, '');
expect(plainTextOutput.trim()).toEqual(`Stack Parent
Could not create a change set, will base the diff on template differences (run again with -v to see the reason)
Resources
[~] AWS::CloudFormation::Stack AdditionChild
└─ [~] Resources
Expand Down

0 comments on commit 25d193a

Please sign in to comment.