Skip to content

Commit 98dbe8a

Browse files
committed
Expose RepositoryVersionSerializer in the plugin API
In pulpcore 3.88 it was added a feature that would the return value of task functions, and those return must be serializable or None. In 3.100 that would be required by pulpcore, so plugins that wante to adapt before might use the RepositoryVersionSerializer. In this case, regardless of whether pulpcore >=3.88 or <3.88 is used, the plugin must be able to import the serializer or it will throw a runtime import error. (cherry picked from commit 20f3b7a)
1 parent f33b7f6 commit 98dbe8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pulpcore/plugin/serializers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
RepositorySerializer,
3232
RepositorySyncURLSerializer,
3333
RepositoryVersionRelatedField,
34+
RepositoryVersionSerializer,
3435
SingleArtifactContentSerializer,
3536
SingleContentArtifactField,
3637
TaskGroupOperationResponseSerializer,
@@ -78,6 +79,7 @@
7879
"RepositorySerializer",
7980
"RepositorySyncURLSerializer",
8081
"RepositoryVersionRelatedField",
82+
"RepositoryVersionSerializer",
8183
"SingleArtifactContentSerializer",
8284
"SingleContentArtifactField",
8385
"TaskGroupOperationResponseSerializer",

0 commit comments

Comments
 (0)