mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 05:12:54 +00:00
Make sure that the required slash is present. (#802)
This commit is contained in:
3
changelogs/fragments/802-renewal-info.yml
Normal file
3
changelogs/fragments/802-renewal-info.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
bugfixes:
|
||||
- "acme_* modules - when querying renewal information, make sure to insert a slash between the base URL and the certificate identifier
|
||||
(https://github.com/ansible-collections/community.crypto/issues/801, https://github.com/ansible-collections/community.crypto/pull/802)."
|
||||
@@ -404,7 +404,7 @@ class ACMEClient(object):
|
||||
|
||||
if cert_id is None:
|
||||
cert_id = compute_cert_id(self.backend, cert_info=cert_info, cert_filename=cert_filename, cert_content=cert_content)
|
||||
url = '{base}{cert_id}'.format(base=self.directory.directory['renewalInfo'], cert_id=cert_id)
|
||||
url = '{base}/{cert_id}'.format(base=self.directory.directory['renewalInfo'].rstrip('/'), cert_id=cert_id)
|
||||
|
||||
data, info = self.get_request(url, parse_json_result=True, fail_on_error=True, get_only=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user