From 92f1ed7b7d41e6752ef87a402c38a7dc79cd45fd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 6 Apr 2020 09:16:29 -0400 Subject: [PATCH] Disable OEM on KCS When using KCS, OEM extensions are not going to work well. For now, disable such extensions. Change-Id: Ic9668ec00906382f4aba94eff0b33ff270869d6b --- pyghmi/ipmi/command.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index d3d3e445..89ff2d05 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -25,6 +25,7 @@ import pyghmi.constants as const import pyghmi.exceptions as exc import pyghmi.ipmi.events as sel import pyghmi.ipmi.fru as fru +import pyghmi.ipmi.oem.generic as genericoem from pyghmi.ipmi.oem.lookup import get_oem_handler import pyghmi.ipmi.private.util as pygutil from pyghmi.ipmi import sdr @@ -249,6 +250,10 @@ class Command(object): """ if self._oemknown: return + if self.bmc is None: + self._oem = genericoem.OEMHandler(None, None) + self._oemknown = True + return self._oem, self._oemknown = get_oem_handler(self._get_device_id(), self)