Skip to content

Commit 8796ee4

Browse files
committed
Address non-serializable task results deprecation warnings
The issue includes reference to deprecation warnings of legacy STORAGES configuration key and of the use of project.license TOML table, but there is no reference in the codebase or in the CI configuration of the deprecated storage keys and the pyproject.toml doesnt' contain the referenced license table. The non-use of any license table is consistent with other component's pyproject.py files (e.g, pulpcore and pulp_rpm). This is curious, as I would expect a license field/table in the pyproject for all Pulp components. Closes #354
1 parent c3d4ff1 commit 8796ee4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES/354.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Addressed the deprecation warning of non-serializable task results.

pulp_npm/app/tasks/synchronizing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def synchronize(remote_pk, repository_pk, mirror=False):
4343
first_stage = NpmFirstStage(remote, deferred_download)
4444
repover = DeclarativeVersion(first_stage, repository, mirror=mirror).create()
4545
repover_serialized = RepositoryVersionSerializer(instance=repover, context={"request": None})
46-
return repover_serialized
46+
return repover_serialized.data
4747

4848

4949
class NpmFirstStage(Stage):

0 commit comments

Comments
 (0)