From ffd8fa44098e2a6db108114ededcf403057a96da Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 22 May 2023 14:15:05 +0200 Subject: [PATCH] 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 (cherry picked from commit 6f9d3d9e15305e80ea5797ff2f0dd0b929e70822) --- src/cephadm/node-proxy/redfish_system.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cephadm/node-proxy/redfish_system.py b/src/cephadm/node-proxy/redfish_system.py index f10a30ece4c8..8b8e96f7a34a 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 -- 2.47.3