From 59f091bdea069a6c64c8a03ad8a54a230eb62640 Mon Sep 17 00:00:00 2001 From: acsbendi Date: Thu, 11 Jul 2019 13:58:57 +0200 Subject: [PATCH] Default INITIAL_NO_AUTH_ACTION_COUNT should be infinity. --- moto/core/responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/core/responses.py b/moto/core/responses.py index 4165732a..7c2f1c73 100644 --- a/moto/core/responses.py +++ b/moto/core/responses.py @@ -108,7 +108,7 @@ class _TemplateEnvironmentMixin(object): class ActionAuthenticatorMixin(object): - INITIAL_NO_AUTH_ACTION_COUNT = int(os.environ.get("INITIAL_NO_AUTH_ACTION_COUNT", 999999999)) + INITIAL_NO_AUTH_ACTION_COUNT = float(os.environ.get("INITIAL_NO_AUTH_ACTION_COUNT", float("inf"))) request_count = 0 def _authenticate_action(self, iam_request_cls):