From f9f3c3d4ee4491bc38868cb30b846886b8fbb185 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 3 Aug 2025 11:55:04 +0200 Subject: [PATCH] Increase number of retries from 10 to 20. (#949) (#950) (cherry picked from commit ba5c551a2928209929bea34052b7f4d1581e9bea) Co-authored-by: Felix Fontein --- changelogs/fragments/949-acme-retry.yml | 3 +++ plugins/module_utils/acme/acme.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/949-acme-retry.yml diff --git a/changelogs/fragments/949-acme-retry.yml b/changelogs/fragments/949-acme-retry.yml new file mode 100644 index 00000000..a41645ea --- /dev/null +++ b/changelogs/fragments/949-acme-retry.yml @@ -0,0 +1,3 @@ +bugfixes: + - "acme_* modules - increase the maximum amount of retries from 10 to 20 to accomodate ZeroSSL's buggy implementation + (https://github.com/ansible-collections/community.crypto/pull/949)." diff --git a/plugins/module_utils/acme/acme.py b/plugins/module_utils/acme/acme.py index 5c70b5ed..79971596 100644 --- a/plugins/module_utils/acme/acme.py +++ b/plugins/module_utils/acme/acme.py @@ -62,7 +62,7 @@ else: # -1 usually means connection problems RETRY_STATUS_CODES = (-1, 408, 429, 502, 503, 504) -RETRY_COUNT = 10 +RETRY_COUNT = 20 def _decode_retry(module, response, info, retry_count):