Skip to content

Commit

Permalink
chore: adding new lines before the interrupt msg (#5256)
Browse files Browse the repository at this point in the history
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
  • Loading branch information
KollaAdithya authored Aug 29, 2023
1 parent 109c506 commit 7dcd301
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/deploy/cloudformation/cloudformation.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ func (cf CloudFormation) waitForSignalAndHandleInterrupt(ctx context.Context, ca
}
switch aws.StringValue(stackDescr.StackStatus) {
case sdkcloudformation.StackStatusCreateInProgress:
log.Infoln()
log.Infof(`Received Interrupt for Ctrl-C.
Pressing Ctrl-C again will exit immediately but the deletion of stack %s will continue
`, stackName)
Expand All @@ -439,6 +440,7 @@ Pressing Ctrl-C again will exit immediately but the deletion of stack %s will co
}
return &ErrStackDeletedOnInterrupt{stackName: stackName}
case sdkcloudformation.StackStatusUpdateInProgress:
log.Infoln()
log.Infof(`Received Interrupt for Ctrl-C.
Pressing Ctrl-C again will exit immediately but stack %s rollback will continue
`, stackName)
Expand Down

0 comments on commit 7dcd301

Please sign in to comment.