From: Guillaume Abrioux Date: Mon, 22 May 2023 12:15:05 +0000 (+0200) Subject: node-proxy: add method start_client() redfish_system class X-Git-Tag: testing/wip-batrick-testing-20240411.154038~520^2~104 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6f9d3d9e15305e80ea5797ff2f0dd0b929e70822;p=ceph-ci.git node-proxy: add method start_client() redfish_system class This is going to be useful for a new endpoint '/start' Signed-off-by: Guillaume Abrioux --- diff --git a/src/cephadm/node-proxy/redfish_system.py b/src/cephadm/node-proxy/redfish_system.py index f10a30ece4c..8b8e96f7a34 100644 --- a/src/cephadm/node-proxy/redfish_system.py +++ b/src/cephadm/node-proxy/redfish_system.py @@ -16,10 +16,15 @@ class RedfishSystem(System): self.system_endpoint = kw.get('system_endpoint', '/Systems/1') log.info(f"redfish system initialization, host: {self.host}, user: {self.username}") self.client = RedFishClient(self.host, self.username, self.password) - self.client.login() self._system = {} self.run = False self.thread = None + self.start_client() + + def start_client(self): + log.info(f"redfish system initialization, host: {self.host}, user: {self.username}") + self.client = RedFishClient(self.host, self.username, self.password) + self.client.login() def get_system(self): return self._system