Skip to content

Commit 266d723

Browse files
committed
Allow overriding certs in sgr cloud upload
1 parent 066d177 commit 266d723

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

splitgraph/commandline/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def upload_file(file: IO, upload_url: str) -> None:
271271
with tqdm(total=size, unit="B", unit_scale=True, unit_divisor=1024) as t:
272272
wrapped_file = CallbackIOWrapper(t.update, file, "read")
273273
t.set_description(os.path.basename(file.name))
274-
requests.put(upload_url, data=wrapped_file)
274+
requests.put(upload_url, data=wrapped_file, verify=os.environ.get("SSL_CERT_FILE", True))
275275

276276

277277
def download_file(url: str, filename: Optional[str]) -> None:

splitgraph/hooks/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
python_sources(
2-
skip_black=True,
3-
dependencies=["src/py/splitgraph/splitgraph/hooks/s3.py"]
2+
skip_black=True, dependencies=["src/py/splitgraph/splitgraph/hooks/s3.py"]
43
)

0 commit comments

Comments
 (0)