mirror of
https://opendev.org/x/pyghmi
synced 2025-08-08 04:10:15 +00:00
Disable OEM on KCS
When using KCS, OEM extensions are not going to work well. For now, disable such extensions. Change-Id: Ic9668ec00906382f4aba94eff0b33ff270869d6b
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user