diff --git a/CHANGES/+domain-blob-redirects.bugfix b/CHANGES/+domain-blob-redirects.bugfix new file mode 100644 index 000000000..42b42b17f --- /dev/null +++ b/CHANGES/+domain-blob-redirects.bugfix @@ -0,0 +1 @@ +Container blob downloads now respect each Domain's object storage redirect setting. diff --git a/pulp_container/app/registry_api.py b/pulp_container/app/registry_api.py index 65c82efd6..8ce9c11db 100644 --- a/pulp_container/app/registry_api.py +++ b/pulp_container/app/registry_api.py @@ -1031,7 +1031,7 @@ def __init__(self, *args, **kwargs): domain = get_domain() if ( domain.storage_class == "pulpcore.app.models.storage.FileSystem" - or not settings.REDIRECT_TO_OBJECT_STORAGE + or not domain.redirect_to_object_storage ): self.redirects_class = FileStorageRedirects elif domain.storage_class == "storages.backends.s3boto3.S3Boto3Storage":