From 803c4f2ceb6a5354d7288913fb598a99e85e0930 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Sat, 15 Aug 2026 12:59:20 +0200 Subject: [PATCH] Skip a shared enclosure when reading the leds get_identify already ignores a chassis several systems share, so that one node does not report the enclosure's indicator as its own. --- confluent_server/aiohmi/redfish/command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_server/aiohmi/redfish/command.py b/confluent_server/aiohmi/redfish/command.py index ae0e4d97..6737ba84 100644 --- a/confluent_server/aiohmi/redfish/command.py +++ b/confluent_server/aiohmi/redfish/command.py @@ -1306,6 +1306,10 @@ class Command(object): state = None for chassis in sysinfo.get('Links', {}).get('Chassis', []): chassisinfo = await self._do_web_request(chassis['@odata.id']) + if len(chassisinfo.get('Links', {}).get('ComputerSystems', [])) > 1: + # A chassis shared with other systems has the enclosure's + # indicator rather than this node's, as in get_identify + continue state = self._indicator_state(chassisinfo) if state is not None: break