Uniform way for returning tasks in API
Bug #1427536 reported by
Przemyslaw Kaminski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Przemyslaw Kaminski |
Bug Description
Our task returning way is buggy:
self.http(202, Task.to_json(task))
We sometimes return 202 status for ready/error tasks and sometimes 200 status for running tasks. A better way is to write a function along the lines of
self.raise_
that would take care of status code automatically.
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Przemyslaw Kaminski (pkaminski) |
importance: | Undecided → Medium |
assignee: | Przemyslaw Kaminski (pkaminski) → Fuel Python Team (fuel-python) |
Changed in fuel: | |
assignee: | Przemyslaw Kaminski (pkaminski) → Vitaly Kramskikh (vkramskikh) |
Changed in fuel: | |
assignee: | Vitaly Kramskikh (vkramskikh) → Przemyslaw Kaminski (pkaminski) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/160676
Review: https:/