From 4cc1098c13d682f391ddcda6c86ed23ee60a031c Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sat, 8 Jun 2019 20:25:45 +0000 Subject: [PATCH] Allow force delete a 'DELETING' container Change-Id: I6d041fef679caf5ac2546ca1a8fdbf31e5322dec --- zun/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zun/common/utils.py b/zun/common/utils.py index 640404ca2..0cb83d2d6 100644 --- a/zun/common/utils.py +++ b/zun/common/utils.py @@ -56,7 +56,7 @@ VALID_STATES = { 'delete_force': [consts.CREATED, consts.CREATING, consts.ERROR, consts.RUNNING, consts.STOPPED, consts.UNKNOWN, consts.DELETED, consts.DEAD, consts.RESTARTING, - consts.REBUILDING], + consts.REBUILDING, consts.DELETING], 'delete_after_stop': [consts.RUNNING, consts.CREATED, consts.ERROR, consts.STOPPED, consts.DELETED, consts.DEAD], 'start': [consts.CREATED, consts.STOPPED, consts.ERROR],