]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: merge self._system with current values
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 11 May 2023 11:25:36 +0000 (13:25 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:43:29 +0000 (14:43 +0000)
Otherwise `self._system` gets reset in each iteration.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/cephadm/node-proxy/redfish_system.py

index df012aa964f8f13d04bc4a9c2462ecbd43dbc858..ae02062a469f4157771e665c3c670af1def068c9 100644 (file)
@@ -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()