Skip to content

Commit

Permalink
Improve flytekit register (#1643)
Browse files Browse the repository at this point in the history
* Fix pyflyte register

Signed-off-by: byhsu <[email protected]>

* revert

Signed-off-by: byhsu <[email protected]>

* lint

Signed-off-by: byhsu <[email protected]>

---------

Signed-off-by: byhsu <[email protected]>
Co-authored-by: byhsu <[email protected]>
  • Loading branch information
ByronHsu and ByronHsu authored May 19, 2023
1 parent a40ccad commit 25a4012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytekit/remote/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,9 @@ def upload_file(
upload_location.signed_url,
data=content,
headers={"Content-Length": str(content_length), "Content-MD5": encoded_md5},
verify=False
if self._config.platform.insecure_skip_verify is True
else self._config.platform.ca_cert_file_path,
)

if rsp.status_code != requests.codes["OK"]:
Expand Down

0 comments on commit 25a4012

Please sign in to comment.