Skip to content

Commit 6ee36ef

Browse files
committed
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
1 parent 024399e commit 6ee36ef

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

cloudkittyclient/v2/reprocessing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class ReprocessingManager(base.BaseManager):
1919

2020
url = '/v2/task/reprocesses'
2121

22-
url_to_post = '/v2/task/reprocess'
23-
2422
def get_reprocessing_tasks(self, offset=0, limit=100, scope_ids=[],
2523
order="DESC", **kwargs):
2624
"""Returns a paginated list of reprocessing tasks.
@@ -75,4 +73,4 @@ def post_reprocessing_task(self, scope_ids=[], start=None, end=None,
7573

7674
body = dict(filter(lambda elem: bool(elem[1]), body.items()))
7775

78-
return self.api_client.post(self.url_to_post, json=body).json()
76+
return self.api_client.post(self.url, json=body).json()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixed a bug where creating a reprocessing task would fail due to sending a
5+
POST request to the wrong endpoint.

0 commit comments

Comments
 (0)