requested changes from review
This commit is contained in:
parent
8b3c2b6654
commit
800e5ab7d2
2 changed files with 2 additions and 2 deletions
|
|
@ -678,7 +678,7 @@ class CloudFormationBackend(BaseBackend):
|
||||||
def list_stack_resources(self, stack_name_or_id):
|
def list_stack_resources(self, stack_name_or_id):
|
||||||
stack = self.get_stack(stack_name_or_id)
|
stack = self.get_stack(stack_name_or_id)
|
||||||
if stack is None:
|
if stack is None:
|
||||||
return []
|
return None
|
||||||
return stack.stack_resources
|
return stack.stack_resources
|
||||||
|
|
||||||
def delete_stack(self, name_or_stack_id):
|
def delete_stack(self, name_or_stack_id):
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@ class CloudFormationResponse(BaseResponse):
|
||||||
stack_name_or_id = self._get_param("StackName")
|
stack_name_or_id = self._get_param("StackName")
|
||||||
resources = self.cloudformation_backend.list_stack_resources(stack_name_or_id)
|
resources = self.cloudformation_backend.list_stack_resources(stack_name_or_id)
|
||||||
|
|
||||||
if not resources:
|
if resources is None:
|
||||||
raise ValidationError(stack_name_or_id)
|
raise ValidationError(stack_name_or_id)
|
||||||
|
|
||||||
template = self.response_template(LIST_STACKS_RESOURCES_RESPONSE)
|
template = self.response_template(LIST_STACKS_RESOURCES_RESPONSE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue