Skip to content

Commit

Permalink
Return a single task in task responses
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis committed Apr 16, 2018
1 parent b147265 commit 759c59b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulp_python/app/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def sync(self, request, pk):
'repository_pk': repository.pk
}
)
return platform.OperationPostponedResponse([async_result], request)
return platform.OperationPostponedResponse(async_result, request)


class PythonPublisherViewSet(platform.PublisherViewSet):
Expand Down Expand Up @@ -94,4 +94,4 @@ def publish(self, request, pk):
'repository_version_pk': repository_version.pk
}
)
return platform.OperationPostponedResponse([result], request)
return platform.OperationPostponedResponse(result, request)

0 comments on commit 759c59b

Please sign in to comment.