Make all_exports subscriptable

This commit is contained in:
Jessie Nadler 2017-06-02 17:16:25 -04:00
parent c0afcfade5
commit 9d37992c64

View File

@ -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