We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1b409 commit 7739370Copy full SHA for 7739370
CHANGES/972.feature
@@ -0,0 +1 @@
1
+Updated tasks to always return JSON-serializable value.
pulp_python/app/tasks/publish.py
@@ -9,6 +9,7 @@
9
from pulpcore.plugin.util import get_domain
10
11
from pulp_python.app import models as python_models
12
+from pulp_python.app.serializers import PythonPublicationSerializer
13
from pulp_python.app.utils import write_simple_index, write_simple_detail
14
15
@@ -36,6 +37,7 @@ def publish(repository_version_pk):
36
37
write_simple_api(pub)
38
39
log.info(_("Publication: {pk} created").format(pk=pub.pk))
40
+ pub = PythonPublicationSerializer(instance=pub, context={"request": None}).data
41
return pub
42
43
0 commit comments