Skip to content

Commit

Permalink
Replace clear() method for backward compatibility. (ansible#64504)
Browse files Browse the repository at this point in the history
(cherry picked from commit 27d3dd5)
  • Loading branch information
n0trax authored and felixfontein committed Nov 7, 2019
1 parent 6cad5e3 commit b92cfee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
@@ -0,0 +1,2 @@
bugfixes:
- "acme_certificate - fix crash when module is used with Python 2.x."
2 changes: 1 addition & 1 deletion lib/ansible/modules/crypto/acme/acme_certificate.py
Expand Up @@ -759,7 +759,7 @@ def f(link, relation):
if relation == 'up':
chain_result, chain_info = self.account.get_request(link, parse_json_result=False)
if chain_info['status'] in [200, 201]:
chain.clear()
del chain[:]
chain.append(self._der_to_pem(chain_result))

process_links(info, f)
Expand Down

0 comments on commit b92cfee

Please sign in to comment.