mirror of
https://github.com/xcat2/confluent.git
synced 2026-10-20 14:45:45 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user