]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
node-proxy: fix RedFishClient.logout() method
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 13 Mar 2024 13:32:59 +0000 (13:32 +0000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 18 Mar 2024 08:34:10 +0000 (08:34 +0000)
commitbe0ac44c410d7c720a61e21ef56e64c4946df400
tree632ed547729bf75eabbf973a135ab2d21f1a2614
parentd5a3efc946034161bdf496aacb8b90a4631aafc4
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>
(cherry picked from commit b1d828d1d2f31c02f225bb375d915353582d158a)
src/ceph-node-proxy/ceph_node_proxy/redfish_client.py