Skip to content

Commit 0f0d97b

Browse files
Johannes HötterJohannes Hötter
authored andcommitted
unfinished file upload
1 parent 644cbc5 commit 0f0d97b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

kern/__init__.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from kern import authentication, api_calls, settings, exceptions
66
from typing import Optional
77
import json
8-
from minio import Minio
98

109

1110
class Client:
@@ -81,7 +80,7 @@ def post_file_import(self, upload_from: str):
8180
import_file_options = None
8281
config_url = settings.get_config_url()
8382
config_api_response = api_calls.get_request(config_url, self.session_token)
84-
endpoint = config_api_response["KERN_S3_ENDPOINT"].replace("http://", "")
83+
endpoint = config_api_response["KERN_S3_ENDPOINT"]
8584

8685
import_url = settings.get_import_url(self.project_id)
8786
import_api_response = api_calls.post_request(
@@ -100,13 +99,4 @@ def post_file_import(self, upload_from: str):
10099
session_token = credentials["SessionToken"]
101100

102101
upload_task_id = import_api_response["uploadTaskId"]
103-
104-
minio = Minio(
105-
endpoint,
106-
access_key=access_key,
107-
secret_key=secret_key,
108-
session_token=session_token,
109-
)
110-
111-
return minio
112-
# return endpoint, access_key, secret_key, session_token, upload_task_id
102+
return endpoint, access_key, secret_key, session_token, upload_task_id

0 commit comments

Comments
 (0)