We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8df9bf2 + b1d828d commit cba1ba0Copy full SHA for cba1ba0
src/ceph-node-proxy/ceph_node_proxy/redfish_client.py
@@ -43,7 +43,8 @@ def login(self) -> None:
43
self.log.error(msg)
44
raise RuntimeError
45
self.token = _headers['X-Auth-Token']
46
- self.location = _headers['Location']
+ location_endpoint: str = _headers['Location'].split('/', 3)[-1:][0]
47
+ self.location = f'/{location_endpoint}'
48
49
def is_logged_in(self) -> bool:
50
self.log.debug(f'Checking token validity for {self.url}')
0 commit comments