Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhellander committed Feb 7, 2025
1 parent e1a4831 commit a448620
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fedn/network/storage/s3/saasrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ def __init__(self, config):
storage_secure_mode = os.environ.get("FEDN_STORAGE_SECURE_MODE", config["storage_secure_mode"])
storage_region = os.environ.get("FEDN_STORAGE_REGION") or config.get("storage_region", "auto")


logger.info(f"storage secure mode: {storage_secure_mode}")
#storage_secure_mode = storage_secure_mode.lower() == "true"
# storage_secure_mode = storage_secure_mode.lower() == "true"

# if storage_secure_mode:
# manager = PoolManager(num_pools=100, cert_reqs="CERT_NONE") #, assert_hostname=False)
logger.info("connection to host: ")
logger.info(f"{storage_hostname}:{storage_port}")
logger.info("storage region: {}".format(storage_region))
self.client = Minio(
f"{storage_hostname}:{storage_port}",
access_key=access_key,
Expand All @@ -64,6 +64,7 @@ def set_artifact(self, instance_name, instance, bucket, is_file=False):
if is_file:
logger.info("writing file to bucket")
logger.info(bucket)
logger.info(instance)
try:
result = self.client.fput_object(bucket, instance_name, instance)
logger.info(result)
Expand Down

0 comments on commit a448620

Please sign in to comment.