Skip to content

Commit

Permalink
publish: get compression_type from repository unless overriden
Browse files Browse the repository at this point in the history
  • Loading branch information
philfry authored and dralley committed Jun 18, 2024
1 parent 17347a7 commit 5b9abff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/3614.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Honor repository's compression_type for publications unless overridden
4 changes: 3 additions & 1 deletion pulp_rpm/app/viewsets/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,9 @@ def create(self, request):
)
repo_config = serializer.validated_data.get("repo_config", repository.repo_config)
repo_config = gpgcheck_options if gpgcheck_options else repo_config
compression_type = serializer.validated_data.get("compression_type")
compression_type = serializer.validated_data.get(
"compression_type", repository.compression_type
)

if repository.metadata_signing_service:
signing_service_pk = repository.metadata_signing_service.pk
Expand Down

0 comments on commit 5b9abff

Please sign in to comment.