Comment 2 for bug 1978499

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/845790
Committed: https://opendev.org/starlingx/config/commit/edd548d8c165ac13d148c2c5d560bd098e345cc3
Submitter: "Zuul (22348)"
Branch: master

commit edd548d8c165ac13d148c2c5d560bd098e345cc3
Author: Kyle MacLeod <email address hidden>
Date: Mon Jun 13 15:35:02 2022 -0400

    Handle status_code / status error in HTTP response

    Checks for the existence of either 'status_code'
    'status_int', or 'status' in the HTTP response object,
    instantiating the HTTPException instance with the found
    code, or raises a generic Exception if not found.

    Test Plan:

    PASS:
    Tested code on system exhibiting the errors
    referenced in the bug. The HTTP response is now
    correctly caught and the correct HTTPException is
    raised.

    Closes-Bug: 1978499

    Signed-off-by: Kyle MacLeod <email address hidden>
    Change-Id: I53d1dd6583368de4f6713a838fe3304d362f1756