Replace clear() method for backward compatibility. (#64504)
This commit is contained in:
parent
75646037dc
commit
27d3dd58a4
2 changed files with 3 additions and 1 deletions
|
@ -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':
|
if relation == 'up':
|
||||||
chain_result, chain_info = self.account.get_request(link, parse_json_result=False)
|
chain_result, chain_info = self.account.get_request(link, parse_json_result=False)
|
||||||
if chain_info['status'] in [200, 201]:
|
if chain_info['status'] in [200, 201]:
|
||||||
chain.clear()
|
del chain[:]
|
||||||
chain.append(self._der_to_pem(chain_result))
|
chain.append(self._der_to_pem(chain_result))
|
||||||
|
|
||||||
process_links(info, f)
|
process_links(info, f)
|
||||||
|
|
Loading…
Reference in a new issue