Confirm minio access
This commit is contained in:
@ -35,4 +35,4 @@ Use `lib/minio_helper.py` to extend the functionality
|
||||
|
||||
Run `test_minio` in `lib/main.py` to test out that it works (TODO: move this to own testing script, perhaps unit tests)
|
||||
|
||||
Note: You will need to have access_key and secret_key in your env before running for this to work, contact @linnealovespie or @ammaratef45 to obtain these keys)
|
||||
Note: You will need to have minio_access_key and minio_secret_key in your env before running for this to work, contact @linnealovespie or @ammaratef45 to obtain these keys)
|
||||
|
||||
@ -7,8 +7,8 @@ class MinioHelper:
|
||||
def __init__(self, bucket_name: str):
|
||||
self.client = Minio(
|
||||
"minio.radmin.live",
|
||||
access_key=os.environ['access_key'],
|
||||
secret_key=os.environ['secret_key']
|
||||
access_key=os.environ['minio_access_key'],
|
||||
secret_key=os.environ['minio_secret_key']
|
||||
)
|
||||
self.bucket_name = bucket_name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user