Replace clear() method for backward compatibility. (#64504)

pull/64576/head
n0trax 5 years ago committed by ansibot
parent 75646037dc
commit 27d3dd58a4

@ -0,0 +1,2 @@
bugfixes:
- "acme_certificate - fix crash when module is used with Python 2.x."

@ -859,7 +859,7 @@ class ACMEClient(object):
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)

Loading…
Cancel
Save