Skip to content

Commit ed451c6

Browse files
DenisBYjobselko
authored andcommitted
Fix S3 Storage documentation, Validator and Serializer.
closes #6630
1 parent d9bc529 commit ed451c6

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

CHANGES/6630.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed S3 Storage configuration.

docs/admin/guides/configure-pulp/configure-storages.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ STORAGES = {
7373
"region_name": "eu-central-1",
7474
},
7575
},
76+
"staticfiles": {
77+
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
78+
},
7679
}
7780
```
7881

pulpcore/app/serializers/domain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ class StorageSettingsSerializer(serializers.Serializer):
342342
STORAGE_MAPPING = {
343343
"pulpcore.app.models.storage.FileSystem": FileSystemSettingsSerializer,
344344
"pulpcore.app.models.storage.PulpSFTPStorage": SFTPSettingsSerializer,
345+
"storages.backends.s3.S3Storage": AmazonS3SettingsSerializer,
345346
"storages.backends.s3boto3.S3Boto3Storage": AmazonS3SettingsSerializer,
346347
"storages.backends.azure_storage.AzureStorage": AzureSettingsSerializer,
347348
"storages.backends.gcloud.GoogleCloudStorage": GoogleSettingsSerializer,

pulpcore/app/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@
436436
Validator("REDIRECT_TO_OBJECT_STORAGE", eq=False)
437437
| Validator(*storage_keys, eq="pulpcore.app.models.storage.FileSystem")
438438
| Validator(*storage_keys, eq="storages.backends.azure_storage.AzureStorage")
439+
| Validator(*storage_keys, eq="storages.backends.s3.S3Storage")
439440
| Validator(*storage_keys, eq="storages.backends.s3boto3.S3Boto3Storage")
440441
| Validator(*storage_keys, eq="storages.backends.gcloud.GoogleCloudStorage")
441442
)

0 commit comments

Comments
 (0)