Skip to content

Commit

Permalink
Remove compression from exports by default
Browse files Browse the repository at this point in the history
closes pulp#4434

(cherry picked from commit 70c46ec)
  • Loading branch information
dralley committed Sep 18, 2023
1 parent f3d766f commit 9302f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/4434.bugfix
@@ -0,0 +1 @@
Removed compression from exports (using gzip level 0). For most users of export functionality it seems to be a poor tradeoff.
2 changes: 1 addition & 1 deletion pulpcore/app/tasks/export.py
Expand Up @@ -379,7 +379,7 @@ def pulp_export(exporter_pk, params):
ValidationError: When path is not in the ALLOWED_EXPORT_PATHS setting,
OR path exists and is not a directory
"""
DEFAULT_COMPRESSION = 1
DEFAULT_COMPRESSION = 0

pulp_exporter = PulpExporter.objects.get(pk=exporter_pk)
serializer = PulpExportSerializer(data=params, context={"exporter": pulp_exporter})
Expand Down

0 comments on commit 9302f6c

Please sign in to comment.