Skip to content

Commit e912feb

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix reprocessing POST request"
2 parents 9bb62e0 + 6ee36ef commit e912feb

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)