From 9d37992c64efb56b09c413edbc990825713fa09c Mon Sep 17 00:00:00 2001 From: Jessie Nadler Date: Fri, 2 Jun 2017 17:16:25 -0400 Subject: [PATCH] Make all_exports subscriptable --- moto/cloudformation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/cloudformation/models.py b/moto/cloudformation/models.py index 6557af9dc..c25103a4c 100644 --- a/moto/cloudformation/models.py +++ b/moto/cloudformation/models.py @@ -208,7 +208,7 @@ class CloudFormationBackend(BaseBackend): self.delete_stack(stack.stack_id) def list_exports(self, token): - all_exports = self.exports.values() + all_exports = list(self.exports.values()) if token is None: exports = all_exports[0:100] next_token = '100' if len(all_exports) > 100 else None