Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-866

Response with 202 Accepted is flagged as an unsuccessful request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Core
    • This issue could happen under any environment.

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matfin Matt Finucane
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: