From fe3e98a426e1b777928ea3f76b1918bc07c6ef69 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Fri, 14 Aug 2026 17:42:24 +0200 Subject: [PATCH] Read device sensor records without raising on the retry codes raw_command raises on 0xCA and 0xC5 before the partial read loop can act on them. --- confluent_server/aiohmi/ipmi/sdr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_server/aiohmi/ipmi/sdr.py b/confluent_server/aiohmi/ipmi/sdr.py index 2095e7ef..01314fca 100644 --- a/confluent_server/aiohmi/ipmi/sdr.py +++ b/confluent_server/aiohmi/ipmi/sdr.py @@ -825,7 +825,9 @@ class SDR(object): rqdata = [rsvid & 0xff, rsvid >> 8, recid & 0xff, recid >> 8, offset, size] - sdrrec = await self.ipmicmd.raw_command( + # Not raw_command: it raises on the completion codes below, + # which are the ones this loop exists to act on + sdrrec = await self.ipmicmd.oldraw_command( netfn=4, command=0x21, data=rqdata, rslun=lun) if sdrrec['code'] == 0xca: if size == 0xff: # get just 5 to get header to know length