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
2 people authored and eapolinario committed Jul 10, 2023
1 parent f8d0acd commit 5c4142a
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 5c4142a

Please sign in to comment.