]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
node-proxy: fix RedFishClient.logout() method 56165/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 13 Mar 2024 13:32:59 +0000 (13:32 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 13 Mar 2024 13:32:59 +0000 (13:32 +0000)
commitb1d828d1d2f31c02f225bb375d915353582d158a
tree880432d3a56d749820088be6f526238c6aa5c2f6
parent6185d084fab59d208d3bfb1fbf5565b52edd85a6
node-proxy: fix RedFishClient.logout() method

the endpoint passed down to util.query() is wrong:
is passes the full url (scheme://addr:port/path) where it should only
pass the path. The cause is that RedFishClient.login() basically stores
the value of the Location header in `self.location`.

The consequence of this is that it makes the client unable to properly logout.

Fixes: https://tracker.ceph.com/issues/64894
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-node-proxy/ceph_node_proxy/redfish_client.py