From 2da9ea249e77e1d46d6372274ed85abab18ec90f Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Fri, 15 Sep 2023 14:47:19 -0400 Subject: [PATCH] Remove compression from exports by default closes #4434 (cherry picked from commit 70c46ec7292a6dd4de20b11000e540643a9cd7cd) --- CHANGES/4434.bugfix | 1 + pulpcore/app/tasks/export.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/4434.bugfix diff --git a/CHANGES/4434.bugfix b/CHANGES/4434.bugfix new file mode 100644 index 0000000000..3d1b1f9cbf --- /dev/null +++ b/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. \ No newline at end of file diff --git a/pulpcore/app/tasks/export.py b/pulpcore/app/tasks/export.py index 825c7c1252..9c45f622c2 100644 --- a/pulpcore/app/tasks/export.py +++ b/pulpcore/app/tasks/export.py @@ -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})