From: Guillaume Abrioux Date: Thu, 11 May 2023 11:25:36 +0000 (+0200) Subject: node-proxy: merge self._system with current values X-Git-Tag: v18.2.4~314^2~108 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64fe2dd9fea2b9134a5cd44eaf0e99fc2a93ace7;p=ceph.git node-proxy: merge self._system with current values Otherwise `self._system` gets reset in each iteration. Signed-off-by: Guillaume Abrioux (cherry picked from commit 6ae1687f5f27b6d03dd2c46735de837c7429ae5b) --- diff --git a/src/cephadm/node-proxy/redfish_system.py b/src/cephadm/node-proxy/redfish_system.py index df012aa964f8..ae02062a469f 100644 --- a/src/cephadm/node-proxy/redfish_system.py +++ b/src/cephadm/node-proxy/redfish_system.py @@ -50,7 +50,8 @@ class RedfishSystem(System): def _update_system(self): redfish_system = self.client.get_path(self.system_endpoint) - self._system = self._process_redfish_system(redfish_system) + _system = self._process_redfish_system(redfish_system) + self._system = {**_system, **self._system} def _update_metadata(self): raise NotImplementedError()