Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fix bindings when pulp2_storage_path is null
Browse files Browse the repository at this point in the history
  • Loading branch information
goosemania committed Mar 22, 2021
1 parent 07d9a3a commit fa13fc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/8436.bugfix
@@ -0,0 +1 @@
Fixed the case when listing pulp2content/ endpoint using bindings would fail if content didn't have a storage path in Pulp 2.
2 changes: 1 addition & 1 deletion pulp_2to3_migration/app/serializers.py
Expand Up @@ -143,7 +143,7 @@ class Pulp2ContentSerializer(ModelSerializer):
pulp2_id = serializers.CharField(max_length=255)
pulp2_content_type_id = serializers.CharField(max_length=255)
pulp2_last_updated = serializers.IntegerField()
pulp2_storage_path = serializers.CharField()
pulp2_storage_path = serializers.CharField(allow_blank=True)
downloaded = serializers.BooleanField(default=False)
pulp3_content = DetailRelatedField(
required=False, allow_null=True, queryset=Pulp2Content.objects.all(),
Expand Down

0 comments on commit fa13fc4

Please sign in to comment.