Comment 2 for bug 1721599

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

Reviewed: https://review.openstack.org/509851
Committed: https://git.openstack.org/cgit/openstack/python-ironicclient/commit/?id=61c5eba5f2a0e6fc642fee47351b92e17e03cbd6
Submitter: Jenkins
Branch: master

commit 61c5eba5f2a0e6fc642fee47351b92e17e03cbd6
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Thu Oct 5 16:48:45 2017 +0000

    Do not use urljoin in base http client

    this fails when ironic API endpoint is not in the form
    "host:port", but "host/vhost" instead
    (as when ironic-api is deployed behind Apache),
    since the 'vhost' gets swallowed by 'urljoin'.

    This leads to a failure when using ironicclient with token and
    endpoint passed in, otherwise a SessionClient is used that does
    not have this problem.

    Simply concat those url parts together (ensuring there is at least a
    single '/' between them).

    Change-Id: I583e0f9bdc81a655861c6ff508782173021428f0
    Closes-Bug: #1721599