You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(cli): use modern messaging infrastructure (#266)
Updates code in `lib/api` to use the latest version of the modern
messaging infrastructure instead of legacy helpers.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
`Bootstrap stack already exists, containing '${currentVariant}'. Not overwriting it with a template containing '${newVariant}' (use --force if you intend to overwrite)`,
95
94
));
96
95
returnabortResponse;
@@ -100,13 +99,13 @@ export class BootstrapStack {
awaitioHelper.notify(debug(`Attempting to create ChangeSet with name ${options.changeSetName} for stack ${options.stack.stackName}`));
474
+
awaitioHelper.notify(IO.DEFAULT_TOOLKIT_DEBUG.msg(`Attempting to create ChangeSet with name ${options.changeSetName} for stack ${options.stack.stackName}`));
awaitioHelper.notify(debug(format('Stack %s does not exist',stackName)));
625
+
awaitioHelper.notify(IO.DEFAULT_TOOLKIT_DEBUG.msg(format('Stack %s does not exist',stackName)));
627
626
returnnull;
628
627
}
629
628
conststatus=stack.stackStatus;
630
629
if(status.isInProgress){
631
-
awaitioHelper.notify(debug(format('Stack %s has an ongoing operation in progress and is not stable (%s)',stackName,status)));
630
+
awaitioHelper.notify(IO.DEFAULT_TOOLKIT_DEBUG.msg(format('Stack %s has an ongoing operation in progress and is not stable (%s)',stackName,status)));
632
631
returnundefined;
633
632
}elseif(status.isReviewInProgress){
634
633
// This may happen if a stack creation operation is interrupted before the ChangeSet execution starts. Recovering
@@ -637,7 +636,7 @@ export async function stabilizeStack(
637
636
// "forever" we proceed as if the stack was existing and stable. If there is a concurrent operation that just
638
637
// hasn't finished proceeding just yet, either this operation or the concurrent one may fail due to the other one
639
638
// having made progress. Which is fine. I guess.
640
-
awaitioHelper.notify(debug(format('Stack %s is in REVIEW_IN_PROGRESS state. Considering this is a stable status (%s)',stackName,status)));
639
+
awaitioHelper.notify(IO.DEFAULT_TOOLKIT_DEBUG.msg(format('Stack %s is in REVIEW_IN_PROGRESS state. Considering this is a stable status (%s)',stackName,status)));
0 commit comments