From 08b53b94a9ed3f4ca1db712af0f7b7a7b790dd63 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 2 Dec 2019 09:35:49 +0100 Subject: [PATCH] acme_certificate: Fix ACME v1 support when modify_account is set to false (#64648) * Fix ACME v1 when modify_account is set to false. * Add changelog. --- changelogs/fragments/64648-acme_certificate-acmev1.yml | 2 ++ lib/ansible/modules/crypto/acme/acme_certificate.py | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/64648-acme_certificate-acmev1.yml diff --git a/changelogs/fragments/64648-acme_certificate-acmev1.yml b/changelogs/fragments/64648-acme_certificate-acmev1.yml new file mode 100644 index 0000000000..56776b0a5d --- /dev/null +++ b/changelogs/fragments/64648-acme_certificate-acmev1.yml @@ -0,0 +1,2 @@ +bugfixes: +- "acme_certificate - fix misbehavior when ACME v1 is used with ``modify_account`` set to ``false``." \ No newline at end of file diff --git a/lib/ansible/modules/crypto/acme/acme_certificate.py b/lib/ansible/modules/crypto/acme/acme_certificate.py index de94e9c546..7f97742e2a 100644 --- a/lib/ansible/modules/crypto/acme/acme_certificate.py +++ b/lib/ansible/modules/crypto/acme/acme_certificate.py @@ -646,9 +646,6 @@ class ACMEClient(object): Return the authorization object of the new authorization https://tools.ietf.org/html/draft-ietf-acme-acme-02#section-6.4 ''' - if self.account.uri is None: - return - new_authz = { "resource": "new-authz", "identifier": {"type": identifier_type, "value": identifier},