]> git-server-git.apps.pok.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:35:22 +0000 (08:35 +0000)
commit495c62a92e17e9a73b9d3e9780dafa2f62cbc403
treeb18b7a1ce9d0f8d5b5fd0522a9c21234e7b10ccb
parentfb289b9cb21d120c05e088589e8ba5e307649084
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