Make all_exports subscriptable
This commit is contained in:
parent
c0afcfade5
commit
9d37992c64
@ -208,7 +208,7 @@ class CloudFormationBackend(BaseBackend):
|
|||||||
self.delete_stack(stack.stack_id)
|
self.delete_stack(stack.stack_id)
|
||||||
|
|
||||||
def list_exports(self, token):
|
def list_exports(self, token):
|
||||||
all_exports = self.exports.values()
|
all_exports = list(self.exports.values())
|
||||||
if token is None:
|
if token is None:
|
||||||
exports = all_exports[0:100]
|
exports = all_exports[0:100]
|
||||||
next_token = '100' if len(all_exports) > 100 else None
|
next_token = '100' if len(all_exports) > 100 else None
|
||||||
|
Loading…
Reference in New Issue
Block a user