mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #1410 from serverless/add-better-stack-identification-on-stack-removal
Add better stack identification on stack removal
This commit is contained in:
commit
a2e9edb8e7
@ -47,7 +47,17 @@ module.exports = {
|
||||
.then((data) => {
|
||||
stackSummaries = data.StackSummaries;
|
||||
|
||||
const stack = _.find(stackSummaries, { StackName: stackName });
|
||||
let convertedStackSummary = {};
|
||||
// convert DeletionTime to UNIX timestamp
|
||||
stackSummaries.forEach((stackSummary) => {
|
||||
convertedStackSummary = stackSummary;
|
||||
convertedStackSummary.DeletionTime = (new Date(stackSummary.DeletionTime))
|
||||
.getTime() / 1000;
|
||||
});
|
||||
|
||||
const stack = _.find(
|
||||
_.orderBy(stackSummaries, 'DeletionTime', 'desc'), { StackName: stackName }
|
||||
);
|
||||
stackStatus = stack.StackStatus;
|
||||
|
||||
this.serverless.cli.log('Checking stack removal progress...');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user