From 3951e6ceb46cf02fe293f29174f5006bab2bce93 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 19 Jan 2025 08:58:46 +0100 Subject: [PATCH] Include cert ID in warning. This prevents the warning to be not shown for different certificates in the same playbook due to warning de-duplication. --- plugins/module_utils/acme/orders.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/acme/orders.py b/plugins/module_utils/acme/orders.py index 5a287d27..1617309a 100644 --- a/plugins/module_utils/acme/orders.py +++ b/plugins/module_utils/acme/orders.py @@ -124,14 +124,15 @@ class Order(object): replaces_cert_id is not None and not (exc.error_code == 409 and exc.error_type == 'urn:ietf:params:acme:error:alreadyReplaced') ): - replaces_cert_id = None if message_callback: message_callback( - 'Stop passing `replaces` due to error {code} {type} when creating ACME order'.format( + 'Stop passing `replaces={replaces}` due to error {code} {type} when creating ACME order'.format( code=exc.error_code, type=exc.error_type, + replaces=replaces_cert_id, ) ) + replaces_cert_id = None continue raise