Merge pull request #1969 from grahamlyons/list-deleted-cloudformation-stacks

Return the deleted stacks in the list stacks call
This commit is contained in:
Steve Pulec 2018-12-28 21:07:06 -05:00 committed by GitHub
commit 5d172d9c97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 7 deletions

View file

@ -224,7 +224,11 @@ class CloudFormationBackend(BaseBackend):
return list(stacks)
def list_stacks(self):
return self.stacks.values()
return [
v for v in self.stacks.values()
] + [
v for v in self.deleted_stacks.values()
]
def get_stack(self, name_or_stack_id):
all_stacks = dict(self.deleted_stacks, **self.stacks)