Skip to content

Commit

Permalink
fix: updating bucket to bucket_name. These are deprecated. (#32533)
Browse files Browse the repository at this point in the history
* fix: updating bucket to bucket_name. These are deprecated.

https://github.com/jschneier/django-storages/blob/master/CHANGELOG.rst#17-2018-09-03
  • Loading branch information
awais786 authored Jun 22, 2023
1 parent 4792f9e commit 92cba6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ImportExportS3Storage(S3Boto3Storage): # pylint: disable=abstract-method

def __init__(self):
bucket = setting('COURSE_IMPORT_EXPORT_BUCKET', settings.AWS_STORAGE_BUCKET_NAME)
super().__init__(bucket=bucket, custom_domain=None, querystring_auth=True)
super().__init__(bucket_name=bucket, custom_domain=None, querystring_auth=True)

# pylint: disable=invalid-name
course_import_export_storage = get_storage_class(settings.COURSE_IMPORT_EXPORT_STORAGE)()
2 changes: 1 addition & 1 deletion cms/djangoapps/export_course_metadata/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class CourseMetadataExportS3Storage(S3Boto3Storage): # pylint: disable=abstract

def __init__(self):
bucket = settings.COURSE_METADATA_EXPORT_BUCKET
super().__init__(bucket=bucket, custom_domain=None, querystring_auth=True)
super().__init__(bucket_name=bucket, custom_domain=None, querystring_auth=True)

course_metadata_export_storage = get_storage_class(settings.COURSE_METADATA_EXPORT_STORAGE)()

0 comments on commit 92cba6c

Please sign in to comment.