From 12801a34fe987dff18a39b059ee2884d1d59f214 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Mon, 27 Jun 2016 16:24:09 +0200 Subject: [PATCH] Add DELETE_FAILED to stackStatusFilter --- lib/plugins/aws/remove/lib/stack.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/plugins/aws/remove/lib/stack.js b/lib/plugins/aws/remove/lib/stack.js index 8f15f0e53..73cbce3db 100644 --- a/lib/plugins/aws/remove/lib/stack.js +++ b/lib/plugins/aws/remove/lib/stack.js @@ -27,6 +27,11 @@ module.exports = { 'DELETE_COMPLETE', 'DELETE_IN_PROGRESS', ]; + const stackStatusFilter = [ + 'DELETE_COMPLETE', + 'DELETE_IN_PROGRESS', + 'DELETE_FAILED', + ]; return new BbPromise((resolve, reject) => { let stackStatus = null; @@ -37,7 +42,7 @@ module.exports = { (callback) => { setTimeout(() => { const params = { - StackStatusFilter: validStatuses, + StackStatusFilter: stackStatusFilter, }; return this.sdk.request('CloudFormation', 'listStacks',