Skip to content

Commit 687421c

Browse files
authored
add a default of 3 retries to PyPIClient (#26963)
1 parent 7770c5c commit 687421c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/devops_tasks/trust_proxy_cert.py

+3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ def combine_cert_file():
3333
print("Set the following certificate paths:")
3434
print("\tSSL_CERT_DIR={}".format(os.path.dirname(COMBINED_LOCATION)))
3535
print("\tREQUESTS_CA_BUNDLE={}".format(COMBINED_LOCATION))
36+
print("\tDEFAULT_CA_BUNDLE_PATH={}".format(COMBINED_LOCATION))
3637

3738
if os.getenv('TF_BUILD', False):
3839
print("##vso[task.setvariable variable=SSL_CERT_DIR]{}".format(os.path.dirname(COMBINED_LOCATION)))
3940
print("##vso[task.setvariable variable=REQUESTS_CA_BUNDLE]{}".format(COMBINED_LOCATION))
41+
print("##vso[task.setvariable variable=DEFAULT_CA_BUNDLE_PATH]{}".format(COMBINED_LOCATION))
42+

tools/azure-sdk-tools/pypi_tools/pypi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_pypi_xmlrpc_client():
1414
class PyPIClient:
1515
def __init__(self, host="https://pypi.org"):
1616
self._host = host
17-
self._http = PoolManager(retries=Retry(raise_on_status=True))
17+
self._http = PoolManager(retries=Retry(total=3, raise_on_status=True))
1818

1919
def project(self, package_name):
2020
response = self._http.request(

0 commit comments

Comments
 (0)