From 120d950682b50598545c080ab8b2cb5f3ed4adf5 Mon Sep 17 00:00:00 2001 From: Pedro Gonzalez Gomez Date: Wed, 17 Jun 2026 13:33:45 +0200 Subject: [PATCH] mgr/dashboard: fix hardware KeyError Fixes: https://tracker.ceph.com/issues/77465 Signed-off-by: Pedro Gonzalez Gomez --- src/pybind/mgr/dashboard/services/hardware.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/services/hardware.py b/src/pybind/mgr/dashboard/services/hardware.py index 31054ab4cc7..f6636c19619 100644 --- a/src/pybind/mgr/dashboard/services/hardware.py +++ b/src/pybind/mgr/dashboard/services/hardware.py @@ -53,7 +53,8 @@ class HardwareService(object): output['host'].setdefault(host, {'flawed': False}) if not output['host'][host]['flawed']: for system in systems.values(): - if any(dimm['status']['health'] != 'OK' for dimm in system.values()): + if any(dimm.get('status', {}).get('health') != 'OK' + for dimm in system.values()): output['host'][host]['flawed'] = True break -- 2.47.3