From f3a8713356c17efa232e4d472a40cc7b870ad2f8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 29 Apr 2014 15:53:29 -0400 Subject: [PATCH] Correct mistakes in constants A number of copy/paste structural errors existed. Correct them in accordance with the specification. Change-Id: I0984f85811744e3100f5990b0606dfbca98a69d4 --- pyghmi/ipmi/private/constants.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyghmi/ipmi/private/constants.py b/pyghmi/ipmi/private/constants.py index 0c8b1460..671bc401 100644 --- a/pyghmi/ipmi/private/constants.py +++ b/pyghmi/ipmi/private/constants.py @@ -648,15 +648,15 @@ sensor_type_offsets = { 'desc': 'Autoboot to diagnostic', 'severity': const.Health.Warning, }, - 0: { + 5: { 'desc': 'OS hard reset', 'severity': const.Health.Ok, }, - 0: { + 6: { 'desc': 'OS warm reset', 'severity': const.Health.Ok, }, - 0: { + 7: { 'desc': 'System restart', 'severity': const.Health.Ok, }, @@ -956,7 +956,7 @@ sensor_type_offsets = { # does not indicate a 'failed' runtime 'severity': const.Health.Critical, }, - 0: { + 2: { 'desc': 'Battery Present', 'severity': const.Health.Ok, },