requested changes from review

This commit is contained in:
Brandon Bradley 2020-02-01 14:52:48 -06:00
parent 8b3c2b6654
commit 800e5ab7d2
2 changed files with 2 additions and 2 deletions

View File

@ -678,7 +678,7 @@ class CloudFormationBackend(BaseBackend):
def list_stack_resources(self, stack_name_or_id):
stack = self.get_stack(stack_name_or_id)
if stack is None:
return []
return None
return stack.stack_resources
def delete_stack(self, name_or_stack_id):

View File

@ -229,7 +229,7 @@ class CloudFormationResponse(BaseResponse):
stack_name_or_id = self._get_param("StackName")
resources = self.cloudformation_backend.list_stack_resources(stack_name_or_id)
if not resources:
if resources is None:
raise ValidationError(stack_name_or_id)
template = self.response_template(LIST_STACKS_RESOURCES_RESPONSE)