Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updating bucket to bucket_name. These are deprecated. #32533

Merged
merged 4 commits into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)()