Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Jun 2, 2024
1 parent 3cfdfb4 commit fef0f4f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sceptre/plan/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ def launch(self) -> StackStatus:

if existing_status == "PENDING":
status = self.create()
elif existing_status in ["CREATE_FAILED", "ROLLBACK_COMPLETE"]:
elif existing_status in [
"CREATE_FAILED",
"ROLLBACK_COMPLETE",
"REVIEW_IN_PROGRESS",
]:
self.delete()
status = self.create()
elif existing_status.endswith("COMPLETE"):
Expand Down Expand Up @@ -449,7 +453,11 @@ def create_change_set(self, change_set_name):
"%s - Stack is in the %s state", self.stack.name, existing_status
)

change_set_type = "CREATE" if existing_status == "PENDING" else "UPDATE"
change_set_type = (
"CREATE"
if existing_status in ["PENDING", "REVIEW_IN_PROGRESS"]
else "UPDATE"
)

create_change_set_kwargs = {
"StackName": self.stack.external_name,
Expand Down

0 comments on commit fef0f4f

Please sign in to comment.