From 92cba6c71c53e2684f218a090c5db042db07f1e2 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Thu, 22 Jun 2023 16:14:22 +0500 Subject: [PATCH] fix: updating bucket to bucket_name. These are deprecated. (#32533) * fix: updating bucket to bucket_name. These are deprecated. https://github.com/jschneier/django-storages/blob/master/CHANGELOG.rst#17-2018-09-03 --- cms/djangoapps/contentstore/storage.py | 2 +- cms/djangoapps/export_course_metadata/storage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/storage.py b/cms/djangoapps/contentstore/storage.py index 9719d052b89..77efa4130eb 100644 --- a/cms/djangoapps/contentstore/storage.py +++ b/cms/djangoapps/contentstore/storage.py @@ -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)() diff --git a/cms/djangoapps/export_course_metadata/storage.py b/cms/djangoapps/export_course_metadata/storage.py index 02a78e4a9c0..f9ebad7d41d 100644 --- a/cms/djangoapps/export_course_metadata/storage.py +++ b/cms/djangoapps/export_course_metadata/storage.py @@ -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)()