Return the deleted stacks in the list stacks call
This matches the behaviour of the AWS API.
This commit is contained in:
parent
ed861ecae1
commit
2d554cd098
2 changed files with 20 additions and 1 deletions
|
|
@ -223,7 +223,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue