From ec1720c8627db4b61085f3dd40c1e9c8d54e3ca1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 19 Jul 2023 15:03:32 -0400 Subject: [PATCH] Correct missing lookup in generic OEM redfish Change-Id: I61efe187ee314ade91a05513d0fe55c614d98e25 --- pyghmi/redfish/oem/generic.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyghmi/redfish/oem/generic.py b/pyghmi/redfish/oem/generic.py index a70484d5..13a479ca 100644 --- a/pyghmi/redfish/oem/generic.py +++ b/pyghmi/redfish/oem/generic.py @@ -17,9 +17,17 @@ import json import os import re +import pyghmi.constants as const import pyghmi.exceptions as exc import pyghmi.media as media +_healthmap = { + 'Critical': const.Health.Critical, + 'Unknown': const.Health.Warning, + 'Warning': const.Health.Warning, + 'OK': const.Health.Ok, +} + boot_devices_write = { 'net': 'Pxe', 'network': 'Pxe',