]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
node-proxy: fix a regression when processing the RedFish API
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 25 Sep 2024 14:28:01 +0000 (14:28 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 26 Sep 2024 12:53:48 +0000 (12:53 +0000)
commitc6a424d8e66909ad8bbabdbe1ba21417fd19acbf
treea275ad9e25763a57a6bf66a5889b59b4ff028eb6
parent2c4d3be109c2b217753d3a0fa0c1b16235933409
node-proxy: fix a regression when processing the RedFish API

ce360a4a5f6 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 <gabrioux@ibm.com>
(cherry picked from commit ad0a7fa655e525194e1099a66907a691a3e5e2cf)
src/ceph-node-proxy/ceph_node_proxy/baseredfishsystem.py