Skip to content

Commit cba1ba0

Browse files
authored
Merge pull request ceph#56165 from guits/fix-node-proxy-logout
node-proxy: fix RedFishClient.logout() method
2 parents 8df9bf2 + b1d828d commit cba1ba0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ceph-node-proxy/ceph_node_proxy/redfish_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def login(self) -> None:
4343
self.log.error(msg)
4444
raise RuntimeError
4545
self.token = _headers['X-Auth-Token']
46-
self.location = _headers['Location']
46+
location_endpoint: str = _headers['Location'].split('/', 3)[-1:][0]
47+
self.location = f'/{location_endpoint}'
4748

4849
def is_logged_in(self) -> bool:
4950
self.log.debug(f'Checking token validity for {self.url}')

0 commit comments

Comments
 (0)