mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
python clinet to support non 80 ports for s3 (#7812)
This commit is contained in:
@@ -1088,10 +1088,14 @@ class Windmill:
|
||||
|
||||
def __boto3_connection_settings(self, s3_resource) -> Boto3ConnectionSettings:
|
||||
endpoint_url_prefix = "https://" if s3_resource["useSSL"] else "http://"
|
||||
endpoint = s3_resource["endPoint"]
|
||||
port = s3_resource.get("port")
|
||||
if port:
|
||||
endpoint_url = "{}{}:{}".format(endpoint_url_prefix, endpoint, port)
|
||||
else:
|
||||
endpoint_url = "{}{}".format(endpoint_url_prefix, endpoint)
|
||||
settings = {
|
||||
"endpoint_url": "{}{}".format(
|
||||
endpoint_url_prefix, s3_resource["endPoint"]
|
||||
),
|
||||
"endpoint_url": endpoint_url,
|
||||
"region_name": s3_resource["region"],
|
||||
"use_ssl": s3_resource["useSSL"],
|
||||
"aws_access_key_id": s3_resource["accessKey"],
|
||||
|
||||
Reference in New Issue
Block a user