Skip to content

Commit

Permalink
Use dynamic MINIO_SECURE setting for Minio client initialization in d…
Browse files Browse the repository at this point in the history
…ashboard_utils and authentication views
  • Loading branch information
SimoneBendazzoli93 committed Feb 19, 2025
1 parent c09b92d commit 7a9d51e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MAIA/dashboard_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def verify_minio_availability(settings):
client = Minio(settings.MINIO_URL,
access_key=settings.MINIO_ACCESS_KEY,
secret_key=settings.MINIO_SECRET_KEY,
secure=True)
secure=settings.MINIO_SECURE)
client.bucket_exists(settings.BUCKET_NAME)
minio_available = True
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion dashboard/apps/authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def register_project(request):
client = Minio(settings.MINIO_URL,
access_key=settings.MINIO_ACCESS_KEY,
secret_key=settings.MINIO_SECRET_KEY,
secure=True)
secure=settings.MINIO_SECURE)
with open(f"/tmp/{namespace}_env",'wb+') as destination:
for chunk in request.FILES['conda'].chunks():
destination.write(chunk)
Expand Down

0 comments on commit 7a9d51e

Please sign in to comment.