diff --git a/moto/cloudformation/models.py b/moto/cloudformation/models.py index 00cbf781d..6557af9dc 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 = [x for x in self.exports.values()] + all_exports = self.exports.values() if token is None: exports = all_exports[0:100] next_token = '100' if len(all_exports) > 100 else None