Skip to content

Commit ad0a7fa

Browse files
committed
node-proxy: fix a regression when processing the RedFish API
ce360a4 introduced a regression. `Endpoint()` doesn't take a `EndpointMgr` object as parameter. The call `e = Endpoint(self, _url, self.client)` obviously throws the following error: ``` TypeError: __init__() takes 3 positional arguments but 4 were given ``` This commit fixes it. Fixes: https://tracker.ceph.com/issues/68231 Signed-off-by: Guillaume Abrioux <[email protected]>
1 parent 327d209 commit ad0a7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def init(self) -> None:
3434
self.log.debug(f'entrypoint found: {to_snake_case(k)} = {v["@odata.id"]}')
3535
_name: str = to_snake_case(k)
3636
_url: str = v['@odata.id']
37-
e = Endpoint(self, _url, self.client)
37+
e = Endpoint(_url, self.client)
3838
setattr(self, _name, e)
3939
setattr(self, 'session', json_data['Links']['Sessions']['@odata.id']) # TODO(guits): needs to be fixed
4040
except (URLError, KeyError) as e:

0 commit comments

Comments
 (0)