New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace clear() method for backward compatibility. #64504
Conversation
Thanks for spotting this! Unfortunately the integration tests didn't catch this since they don't use ACME v1... BTW, out of curiosity: why are you still using ACME v1? Is it because you didn't upgrade yet, or because the ACME server you're using doesn't support ACME v2? (Edit: from your example in #64501 I see you're using Let's Encrypt. Please note that Let's Encrypt deprecated ACME v1 and will remove it eventually.) In any case, you need a changelog fragment:
|
(In case you're interested, Let's Encrypt's ACME v1 deprecation.) |
lgtm |
@felixfontein the task uses the ACMEv1 because it is an older playbook and the default acme_version of the acme_certificate module is still ACMEv1. I also added the changelog fragment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shipit
@n0trax thanks for reporting and fixing this! I'll create backport PRs so this will also get fixed in 2.8.x and 2.9.x eventually. @n0trax actually the default for |
(cherry picked from commit 27d3dd5)
(Just noticed, no backport necessary to stable-2.8 since that doesn't happen in Ansible 2.8.x. The broken code was new for 2.9.0.) |
(cherry picked from commit 27d3dd5)
SUMMARY
The clear() method is only supported from python >= 3.3, but acme_certificate has python >=2.6 as requirement. Therefore we should replace the clear() method.
Fixes #64501
ISSUE TYPE
COMPONENT NAME
acme_certificate