Skip to content

Commit e105b43

Browse files
committed
Fix new regions check.
1 parent 5a85c27 commit e105b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CloudFormationDeployer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class CloudFormationDeployer {
377377
const newRegions = options.regions.filter(r => !existingRegions.some(e => e === r));
378378

379379
// If the stack already existed, and there are no new regions, all the stacks are updated then check to see if the template matches the new template
380-
if (stackExists && !newRegions && existingStacks.every(s => s.Status === 'CURRENT')) {
380+
if (stackExists && !newRegions.length && existingStacks.every(s => s.Status === 'CURRENT')) {
381381
const regionStacks = await this.cloudFormationClient.listStacks({ StackStatusFilter: ['CONFIGURATION_COMPLETE', 'CREATE_COMPLETE', 'UPDATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE'] }).promise()
382382
.then(r => r.StackSummaries);
383383

0 commit comments

Comments
 (0)