Skip to content

Commit

Permalink
chore: update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
jbw committed Aug 24, 2023
1 parent c26e452 commit a394f93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,15 @@ class CloudFormationChangeSet {
}
}
async execute(changeSetName, stackName, waitFor) {
await this.cf
const resp = await this.cf
.executeChangeSet({
StackName: stackName,
ChangeSetName: changeSetName,
})
.promise();
if (resp.$response.error) {
throw resp.$response.error;
}
if (waitFor) {
console.debug('Waiting for stack update to complete...');
await this.waitForStackCreation(stackName);
Expand Down Expand Up @@ -396,7 +399,7 @@ async function run() {
template: template,
capabilities: [...capabilities.split(',').map((cap) => cap.trim())],
timeout: parseInt(timeout),
waitFor: new Boolean(waitFor),
waitFor: waitFor === 'true',
executeChangeSet: new Boolean(executeChangeSet),
enableRollback: new Boolean(enableRollback),
terminationProtection: new Boolean(terminationProtection),
Expand Down

0 comments on commit a394f93

Please sign in to comment.