Fix: Ensure the returned next_token is None (avoid client going round in a loop)

This commit is contained in:
Chris K 2019-04-05 15:59:38 +01:00
parent 2d6be24ffc
commit 7fcedcb783

View File

@ -189,7 +189,7 @@ class SecretsManagerBackend(BaseBackend):
return response
def list_secrets(self, max_results, next_token):
# TODO implement pagination
# TODO implement pagination and limits
secret_list = [{
"ARN": secret_arn(self.region, secret['secret_id']),
@ -211,7 +211,7 @@ class SecretsManagerBackend(BaseBackend):
"Tags": secret['tags']
} for secret in self.secrets.values()]
return secret_list, next_token
return secret_list, None
available_regions = (