Skip to content

Commit bf33829

Browse files
authored
fix(cli): change-set arn is not printed on cdk deploy --no-execute (#166)
Fixes: #160 Fixes three message statements that did not get send to the IoHost. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent f925551 commit bf33829

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/aws-cdk/lib/api/deployments/deploy-stack.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ class FullCloudFormationDeployment {
426426
await this.updateTerminationProtection();
427427

428428
if (changeSetHasNoChanges(changeSetDescription)) {
429-
debug(this.action, format('No changes are to be performed on %s.', this.stackName));
429+
await this.ioHost.notify(debug(this.action, format('No changes are to be performed on %s.', this.stackName)));
430430
if (execute) {
431-
debug(this.action, format('Deleting empty change set %s', changeSetDescription.ChangeSetId));
431+
await this.ioHost.notify(debug(this.action, format('Deleting empty change set %s', changeSetDescription.ChangeSetId)));
432432
await this.cfn.deleteChangeSet({
433433
StackName: this.stackName,
434434
ChangeSetName: changeSetName,
@@ -457,10 +457,10 @@ class FullCloudFormationDeployment {
457457
}
458458

459459
if (!execute) {
460-
info(this.action, format(
460+
await this.ioHost.notify(info(this.action, format(
461461
'Changeset %s created and waiting in review for manual execution (--no-execute)',
462462
changeSetDescription.ChangeSetId,
463-
));
463+
)));
464464
return {
465465
type: 'did-deploy-stack',
466466
noOp: false,

0 commit comments

Comments
 (0)