Fix reprocessing POST request
The POST request for triggering reprocessing needs to be made to ``/v2/task/reprocesses``. This is the same as for other requests, so we can drop ``url_for_post``. Change-Id: If630d4f313c875733dbe1937ff7ca625821e04af
This commit is contained in:
@@ -19,8 +19,6 @@ class ReprocessingManager(base.BaseManager):
|
||||
|
||||
url = '/v2/task/reprocesses'
|
||||
|
||||
url_to_post = '/v2/task/reprocess'
|
||||
|
||||
def get_reprocessing_tasks(self, offset=0, limit=100, scope_ids=[],
|
||||
order="DESC", **kwargs):
|
||||
"""Returns a paginated list of reprocessing tasks.
|
||||
@@ -75,4 +73,4 @@ class ReprocessingManager(base.BaseManager):
|
||||
|
||||
body = dict(filter(lambda elem: bool(elem[1]), body.items()))
|
||||
|
||||
return self.api_client.post(self.url_to_post, json=body).json()
|
||||
return self.api_client.post(self.url, json=body).json()
|
||||
|
@@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixed a bug where creating a reprocessing task would fail due to sending a
|
||||
POST request to the wrong endpoint.
|
Reference in New Issue
Block a user