Matt Finucane created LIBCLOUD-866:
--------------------------------------
Summary: Response with 202 Accepted is flagged as an unsuccessful
request
Key: LIBCLOUD-866
URL: https://issues.apache.org/jira/browse/LIBCLOUD-866
Project: Libcloud
Issue Type: Improvement
Components: Core
Environment: This issue could happen under any environment.
Reporter: Matt Finucane
If you look inside the definition for the success function inside
libcloud/common/base.py you will see that it only returns true for [httplib.OK,
httplib.CREATED] with the relevant status codes of 200 and 201.
I am working on a driver that also returns 202 Accepted, and as it stands, this
would be flagged as a failure.
I forked from the main repository and corrected the issue by including
httplib.ACCEPTED.
When I finish work on this driver, should I push that change upstream too?
Without it, my driver will not work for most requests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)